summaryrefslogtreecommitdiffstats
path: root/crypto/bio
AgeCommit message (Collapse)Author
2015-01-06Fix memory leak.Martin Brejcha
Fix memory leak by freeing up saved_message.data if it is not NULL. PR#3489 Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (cherry picked from commit 41cd41c4416f545a18ead37e09e437c75fa07c95)
2014-12-20Fix incorrect OPENSSL_assert() usage.Michael Tuexen
Return an error code for I/O errors instead of an assertion failure. PR#3470 Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (cherry picked from commit 2521fcd8527008ceb3e4748f95b0ed4e2d70cfef)
2014-12-03There are a number of instances throughout the code where the constant 28 isMatt Caswell
used with no explanation. Some of this was introduced as part of RT#1929. The value 28 is the length of the IP header (20 bytes) plus the UDP header (8 bytes). However use of this constant is incorrect because there may be instances where a different value is needed, e.g. an IPv4 header is 20 bytes but an IPv6 header is 40. Similarly you may not be using UDP (e.g. SCTP). This commit introduces a new BIO_CTRL that provides the value to be used for this mtu "overhead". It will be used by subsequent commits. Reviewed-by: Tim Hudson <tjh@openssl.org> (cherry picked from commit 0d3ae34df573f477b6b1aaf614d52dcdfcff5fce) Conflicts: crypto/bio/bss_dgram.c
2014-11-17Don't use msg on error.Jan Hykel
Don't attempt to access msg structure if recvmsg returns an error. PR#3483 Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (cherry picked from commit 012aa9ec76b158179b4de44bb5de8b8472045eac)
2014-07-09Fix memory leak in BIO_free if there is no destroy function.Matt Caswell
Based on an original patch by Neitrino Photonov <neitrinoph@gmail.com> PR#3439 (cherry picked from commit 66816c53bea0ecddb9448da7ea9a51a334496127)
2014-05-12Set authkey to NULL and check malloc return value.Kurt Roeckx
2014-05-12dgram_sctp_ctrl: authkey memory leakMartin Brejcha
PR: 3327
2014-02-25Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson
Windows 8 SDKs complain that GetVersion() is deprecated. We only use GetVersion like this: (GetVersion() < 0x80000000) which checks if the Windows version is NT based. Use a macro check_winnt() which uses GetVersion() on older SDK versions and true otherwise. (cherry picked from commit a4cc3c8041104896d51ae12ef7b678c31808ce52)
2014-01-06make updateDr. Stephen Henson
2013-12-08make updateDr. Stephen Henson
2013-11-01DTLS/SCTP struct authchunks BugRobin Seggelmann
PR: 2809 DTLS/SCTP requires DATA and FORWARD-TSN chunks to be protected with SCTP-AUTH. It is checked if this has been activated successfully for the local and remote peer. Due to a bug, however, the gauth_number_of_chunks field of the authchunks struct is missing on FreeBSD, and was therefore not considered in the OpenSSL implementation. This patch sets the corresponding pointer for the check correctly whether or not this bug is present. (cherry picked from commit f596e3c491035fe80db5fc0c3ff6b647662b0003) (cherry picked from commit b8140811367f6e1ef13afa6ffe9625309c46946c)
2012-07-01Unused variable.Ben Laurie
2012-07-01bss_dgram.c: fix typos in Windows code.Andy Polyakov
2012-06-19bss_dgram.c: fix bugs [from HEAD].Andy Polyakov
PR: 2833
2012-06-08Reduce version skew.Ben Laurie
2012-04-16OPENSSL_NO_SOCK fixes [from HEAD].Andy Polyakov
PR: 2791 Submitted by: Ben Noordhuis
2012-04-16Minor compatibility fixes [from HEAD].Andy Polyakov
PR: 2790 Submitted by: Alexei Khlebnikov
2012-03-06PR: 2755Dr. Stephen Henson
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reduce MTU after failed transmissions.
2012-02-25PR: 2730Dr. Stephen Henson
Submitted by: Arpadffy Zoltan <Zoltan.Arpadffy@scientificgames.se> VMS fixes: disable SCTP by default.
2011-12-27fix error codeDr. Stephen Henson
2011-12-25PR: 2535Dr. Stephen Henson
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Add SCTP support for DTLS (RFC 6083).
2011-12-02Fix BIO_f_buffer().Bodo Möller
Submitted by: Adam Langley Reviewed by: Bodo Moeller
2011-10-10Backport ossl_ssize_t type from HEAD.Dr. Stephen Henson
2011-09-01PR: 2340Dr. Stephen Henson
Submitted by: "Mauro H. Leggieri" <mxmauro@caiman.com.ar> Reviewed by: steve Stop warnings if OPENSSL_NO_DGRAM is defined.
2011-07-20PR: 2559Dr. Stephen Henson
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Fix DTLS socket error bug
2011-05-25PR: 2512Dr. Stephen Henson
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Fix BIO_accept so it can be bound to IPv4 or IPv6 sockets consistently.
2011-03-19Apply all the changes submitted by Steven M. Schweda <sms@antinode.info>Richard Levitte
2011-01-03PR: 2413Dr. Stephen Henson
Submitted by: Michael Bergandi <mbergandi@gmail.com> Reviewed by: steve Fix typo in crypto/bio/bss_dgram.c
2010-12-11bss_file.c: refine UTF8 logic [from HEAD].Andy Polyakov
PR: 2382
2010-06-15Fix warnings (From HEAD, original patch by Ben).Dr. Stephen Henson
2010-05-31fix PR#2261 in a different wayDr. Stephen Henson
2010-04-28bss_file.c: reserve for option to encode file name in UTF-8 on WindowsAndy Polyakov
[from HEAD].
2010-03-27PR: 1763Dr. Stephen Henson
Remove useless num = 0 assignment. Remove redundant cases on sock_ctrl(): default case handles them.
2010-03-22bss_file.c: fix MSC 6.0 warning [from HEAD].Andy Polyakov
2010-03-15Fix UPLINK typo [from HEAD].Andy Polyakov
2010-01-07b_sock.c: bind/connect are picky about socket address length [from HEAD].Andy Polyakov
2010-01-07sendto is reportedly picky about destination socket address length [from HEAD].Andy Polyakov
PR: 2114 Submitted by: Robin Seggelmann
2010-01-06Fix compilation on older Linux [from HEAD].Andy Polyakov
2009-12-30b_sock.c: correct indirect calls on WinSock platforms [from HEAD].Andy Polyakov
PR: 2130 Submitted by: Eugeny Gostyukhin
2009-11-26bss_dgram.c: re-fix BIO_CTRL_DGRAM_GET_PEER (from HEAD).Andy Polyakov
2009-11-22bio_sock.c and bss_dgram.c: update from HEAD.Andy Polyakov
PR: 2069
2009-11-09Combat gcc 4.4.1 aliasing rules. (from HEAD)Dr. Stephen Henson
2009-10-15PR: 2069Dr. Stephen Henson
Submitted by: Michael Tuexen <tuexen@fh-muenster.de> Approved by: steve@openssl.org IPv6 support for DTLS.
2009-10-04Prevent ignored return value warningDr. Stephen Henson
2009-09-22PR: 2050Dr. Stephen Henson
Submitted by: Michael Tuexen <tuexen@fh-muenster.de> Approved by: steve@openssl.org Fix handling of ENOTCONN and EMSGSIZE for dgram BIOs.
2009-09-20PR: 2047Dr. Stephen Henson
Submitted by: David Lee <live4thee@gmail.com>, steve@openssl.org Approved by: steve@openssl.org Fix for IPv6 handling in BIO_get_accept_socket().
2009-09-04PR: 2028Dr. Stephen Henson
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Approved by: steve@openssl.org Fix DTLS cookie management bugs.
2009-08-26PR: 2005Dr. Stephen Henson
Submitted by: steve@openssl.org Some systems have broken IPv6 headers and/or implementations. If OPENSSL_USE_IPV6 is set to 0 IPv6 is not used, if it is set to 1 it is used and if undefined an attempt is made to detect at compile time by checking if AF_INET6 is set and excluding known problem platforms.
2009-07-24PR: 1990Dr. Stephen Henson
Update from 0.9.8-stable.
2009-07-24Update from 0.9.8-stable.Dr. Stephen Henson