summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/b_sock.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Sort and group includes.jsing2014-05-051-9/+8
|
* Repair BIO_socket_nbio operation.jsing2014-05-051-2/+3
| | | | ok miod@
* Replace all use of ERR_add_error_data with ERR_asprintf_error_data.beck2014-04-261-5/+5
| | | | | | | | This avoids a lot of ugly gymnastics to do snprintfs before sending the bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c where it was being called with the incorrect number of arguments and using random things off the stack as addresses of strings. ok krw@, jsing@
* The usual idiom to cope with systems not defining socklen_t is to add amiod2014-04-231-35/+5
| | | | | | | | | | | | | | | | | | #define socklen_t int somewhere (or a typedef, whatever gives you an integer type of the size your system expects as the 3rd argument of accept(2), really). OpenSSL here is a bit more creative by using an union of an int and a size_t, and extra code if sizeof(int) != sizeof(size_t) in order to recover the proper size. With a comment mentioning that this has no chance to work on a platform with a stack growing up and accept() returning an int, fortunately this seems to work on HP-UX. Switch to the light side of the force and declare and use socklen_t variables, period. If your system does not define socklen_t, consider bringing it back to your vendor for a refund. ok matthew@ tedu@
* close socket in failure cases tootedu2014-04-231-0/+3
|
* if realloc failed, BIO_accept would leak memory and return NULL, causingtedu2014-04-231-2/+11
| | | | caller to crash. Fix leak and return an error instead. from Chad Loder
* We'll interpret a (void) cast on snprintf() to mean it's been verified thatguenther2014-04-191-2/+2
| | | | | | truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
* unifdef NO_SOCKtedu2014-04-181-2/+0
|
* Put the final pieces from e_os.h in the required places, and remove it.deraadt2014-04-181-12/+1
| | | | | "dance on it's grave" says beck ok guenther beck
* unistd.h for protos where neededderaadt2014-04-181-0/+1
|
* more windows/netware leftoverstedu2014-04-171-18/+3
|
* delete if 0 codetedu2014-04-171-28/+0
|
* Mostly gut e_os.h:deraadt2014-04-171-7/+4
| | | | | | | | USE_SOCKETS is unrelated to using sockets, but just pulls in .h files. It makes every file buy a kitchen sink, because 11 files forgot to. EXIT() is really exit(), a gentle surprise but... OPENSSL_EXIT() is really just return(), because noone compiles the openssl command non-monolithic anymore
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-4/+4
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* Revert unintended whitespace changes.jsing2014-04-171-4/+4
|
* > As I walk through the valley of the shadow of deathtedu2014-04-161-267/+2
| | | | | | | | | > I take a look at my life and realize there's nothin' left > Cause I've been blasting and laughing so long, > That even my mama thinks that my mind is gone Remove even more unspeakable evil being perpetuated in the name of VMS. (and lesser evils done in the name of others.) ok miod
* More KNF.jsing2014-04-161-28/+31
|
* Toss a `unifdef -U OPENSSL_SYS_WINDOWS' bomb into crypto/bio.jsing2014-04-151-37/+1
| | | | ok miod@
* First pass at applying KNF to the OpenSSL code, which almost makes itjsing2014-04-151-522/+503
| | | | | readable. This pass is whitespace only and can readily be verified using tr and md5.
* Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversionsbeck2014-04-151-2/+2
| | | | | where the return value is ignored changing to (void) snprintf. ok deraadt@
* Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt2014-04-131-21/+21
| | | | | | which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
* resolve conflictsdjm2012-10-131-1/+1
|
* openssl-1.0.0e: resolve conflictsdjm2011-11-031-1/+28
|
* resolve conflicts, fix local changesdjm2010-10-011-40/+202
|
* resolve conflictsdjm2008-09-061-13/+47
|
* merge 0.9.7dmarkus2004-04-081-6/+6
|
* merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-121-2/+14
|
* sprintf->snprintf. deraadt@ suggestions and okho2003-04-061-6/+6
|
* merge openssl-0.9.7-beta3, tested on vax by miod@markus2002-09-101-0/+4
|
* OpenSSL 0.9.7 stable 2002 05 08 mergebeck2002-05-151-26/+40
|
* openssl-engine-0.9.6a mergebeck2001-06-221-7/+7
|
* openssl-engine-0.9.6 mergebeck2000-12-151-16/+21
|
* OpenSSL 0.9.5 mergebeck2000-03-191-5/+19
| | | | | | *warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
* OpenSSL 0.9.4 mergebeck1999-09-291-122/+197
|
* Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker1998-10-051-0/+628
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.