summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
AgeCommit message (Collapse)Author
2015-01-22Re-align some comments after running the reformat script.OpenSSL_1_0_1-post-reformatMatt Caswell
This should be a one off operation (subsequent invokation of the script should not move them) This commit is for the 1.0.1 changes Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22mark all block comments that need format preserving so thatTim Hudson
indent will not alter them when reformatting comments (cherry picked from commit 1d97c8435171a7af575f73c526d79e1ef0ee5960) Conflicts: crypto/bn/bn_lcl.h crypto/bn/bn_prime.c crypto/engine/eng_all.c crypto/rc4/rc4_utl.c crypto/sha/sha.h ssl/kssl.c ssl/t1_lib.c Conflicts: crypto/rc4/rc4_enc.c crypto/x509v3/v3_scts.c crypto/x509v3/v3nametest.c ssl/d1_both.c ssl/s3_srvr.c ssl/ssl.h ssl/ssl_locl.h ssl/ssltest.c ssl/t1_lib.c Reviewed-by: Tim Hudson <tjh@openssl.org>
2012-04-16OPENSSL_NO_SOCK fixes [from HEAD].Andy Polyakov
PR: 2791 Submitted by: Ben Noordhuis
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
2010-05-31fix PR#2261 in a different wayDr. Stephen Henson
2010-01-07b_sock.c: bind/connect are picky about socket address length [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-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-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-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-04-27b_sock.c: readability update from HEAD.Andy Polyakov
2009-04-03PR: 1888Dr. Stephen Henson
Submitted by: Tim Rice <tim@multitalents.net> Approved by: steve@openssl.org Allow SOCKLEN_T type to be overridden at config time e.g. ./config -DSOCKLEN_T=int
2008-01-03Netware support.Dr. Stephen Henson
Submitted by: Guenter Knauf <eflash@gmx.net>
2007-12-03Change submitted by Doug Kaufman. He writes:Richard Levitte
I just compiled the 9.9-dev version from the 12022007 tarball under DJGPP. There were only 2 changes needed, one for b_sock.c, since DJGPP with WATT32 doesn't define socklen_t and one for testtsa to handle DOS style path separators. I also noted what seems to be a typographical error in ts.pod. The test suite passes. The patch is attached. Since I am in the US, I have sent notifications to the Bureau of Industry and Security and to the NSA.
2007-09-16It's inappropraite to override application signal, nor is it appropriateAndy Polyakov
to shut down Winsock unless we know it won't be used [and we never do]. PR: 1439
2006-04-11Add BeOS support.Ulf Möller
PR: 1312 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
2006-02-09Fix warnings about "sin" conflicting with sin(3) definition.Dr. Stephen Henson
2006-02-09Avoid warnings about shadowed definitions.Dr. Stephen Henson
2006-01-04The VMS I run on doesn't know socklen_t and uses size_t instead.Richard Levitte
2006-01-02Refine login in b_sock.c.Andy Polyakov
2006-01-02Fix typo and purify logic in b_sock.cAndy Polyakov
2006-01-02Make b_sock.c IPv6 savvy.Andy Polyakov
2005-06-13Netware patch submitted by Verdon Walker" <VWalker@novell.com> in PRRichard Levitte
1107. He says: This is a followup to the NetWare patch that was applied to beta3. It does the following: - Fixes a problem in the CLib build with undefined symbols. - Adds the ability to use BSD sockets as the default for the OpenSSL socket BIO. NetWare supports 2 flavors of sockets and our Apache developers need BSD sockets as a configurable option when building OpenSSL. This adds that for them. - Updates to the INSTALL.NW file to explain new options. I have tried very hard to make sure all the changes are in NetWare specific files or guarded carefully to make sure they only impact NetWare builds. I have tested the Windows build to make sure it does not break that since we have made changes to mk1mf.pl. We are still working the gcc cross compile for NetWare issue and hope to have a patch for that before beta 6 is released.
2003-12-27Use BUF_strlcpy() instead of strcpy().Richard Levitte
Use BUF_strlcat() instead of strcat(). Use BIO_snprintf() instead of sprintf(). In some cases, keep better track of buffer lengths. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
2003-11-28Netware-specific changes,Richard Levitte
PR: 780 Submitted by: Verdon Walker <VWalker@novell.com> Reviewed by: Richard Levitte
2003-03-20Make sure we get the definition of OPENSSL_NO_SOCK.Richard Levitte
2003-01-31We can't say in advance what the argument to BIO_socket_ioctl() should be, soRichard Levitte
let's make that a void *. Also, BIO_socket_nbio() should send it an int argument, not a long. PR: 457
2002-11-15WinCE patchesRichard Levitte
2002-11-14Fix to build better with DJGPP.Richard Levitte
PR: 338 Here's the description, submitted by Gisle Vanem <giva@bgnett.no>: 1. sock_init() renamed to ssl_sock_init() in ./apps/s_socket.c due to name-clash with Watt-32. 2. rand() renamed to Rand() in ./crypto/bn/divtest.c due to name-clash with <stdlib.h> 3. Added calls to dbug_init()/sock_init() in some demo programs. 4. Changed cflags/lflags in configure. Watt-32 install root now taken from $WATT_ROOT.
2002-11-13Security fixes brought forward from 0.9.7.Ben Laurie
2002-06-13Add support for DJGPP.Richard Levitte
PR: 75
2002-03-29Fix of mixup bwtween SOMAXCONN and SO_MAXCONN.Richard Levitte
Furthermore, make SO_MAXCONN the first choice, since that's the standard (as far as I know).
2001-10-27Stop compiler warnings.Dr. Stephen Henson
2001-10-26disable caching in BIO_gethostbynameBodo Möller
2001-06-25Make get_ip() a bit more strict in it's parsing of IP addresses, andRichard Levitte
at the same time a bit more accepting with host names.
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
2001-02-19Make all configuration macros available for application by makingRichard Levitte
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2001-02-05Fix a memory leak in BIO_get_accept_socket(). This leak was small andRichard Levitte
only happened when the port number wasn't parsable ot the host wasn't possible to convert to an IP address. Contributed by Niko Baric <Niko.Baric@epost.de>
2000-10-12Make non blocking I/O work for accept BIOs.Dr. Stephen Henson
2000-10-09BIO_sock_init() returns 1 for success and -1 for failure, not 0;Bodo Möller
thus the condition '!BIO_sock_init()' doesn't make sense.
2000-07-31If a ip address is successfully parsed, the WSA structure under Win32 wasn'tRichard Levitte
properly initialised. Fixed. Bug reported by DeJuan Jackson <djackson@inverge.com>
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
2000-01-30Seek out and destroy another evil cast.Ulf Möller
2000-01-30Source code cleanups: Use void * rather than char * in lhash,Ulf Möller
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
2000-01-17SOCKETSHR is showing bad declarations again. However, a simple castRichard Levitte
which does no harm fixes that problem.
1999-08-11Submitted by: Lidong Zhou <ldzhou@cs.cornell.edu>Bodo Möller
1999-06-07Use locking in a way that makes more sense.Bodo Möller