summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace all use of ERR_add_error_data with ERR_asprintf_error_data.beck2014-04-263-20/+19
| | | | | | | | 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@
* This is not FreeBSD.jsing2014-04-261-18/+0
| | | | ok miod@
* The usual idiom to cope with systems not defining socklen_t is to add amiod2014-04-232-49/+8
| | | | | | | | | | | | | | | | | | #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
* wrong calloc, see people do carederaadt2014-04-211-1/+2
|
* Replace entire printf-like guts with calls to libc snprintf.deraadt2014-04-211-769/+46
| | | | | funopen(3) is used to interface to BIO descriptors. ok guenther
* Bring malloc/calloc/realloc sequences to modern standardderaadt2014-04-218-27/+19
| | | | ok guenther
* We'll interpret a (void) cast on snprintf() to mean it's been verified thatguenther2014-04-194-23/+23
| | | | | | truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
* use intrinsic strlcpy and strlcat everywhere so we only have one set ofbeck2014-04-192-12/+12
| | | | | | funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
* unifdef NO_SOCKtedu2014-04-184-8/+0
|
* Put the final pieces from e_os.h in the required places, and remove it.deraadt2014-04-183-36/+3
| | | | | "dance on it's grave" says beck ok guenther beck
* unistd.h for protos where neededderaadt2014-04-186-0/+6
|
* don't fake up SSIZE_MAXtedu2014-04-171-8/+0
|
* more windows/netware leftoverstedu2014-04-172-22/+3
|
* delete if 0 codetedu2014-04-174-77/+14
|
* kill REF_PRINT/REF_CHECK debugging framework noone would usederaadt2014-04-171-9/+0
| | | | ok miod
* Mostly gut e_os.h:deraadt2014-04-176-13/+13
| | | | | | | | 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
* some KNF cleanup following the scriptderaadt2014-04-1715-70/+70
|
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-1711-68/+68
| | | | | | | | 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
|
* tag some functions with bounded. idea and ok djmtedu2014-04-171-3/+6
|
* Clean up dangerous strncpy use. This included a use where the resultingbeck2014-04-161-3/+1
| | | | | | | string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@
* - Why do we hide from the OpenSSL police, dad?miod2014-04-165-109/+23
| | | | | | | | - Because they're not like us, son. They use macros to wrap stdio routines, for an undocumented (OPENSSL_USE_APPLINK) use case, which only serves to obfuscate the code. ok tedu@
* > As I walk through the valley of the shadow of deathtedu2014-04-1610-606/+4
| | | | | | | | | > 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-1610-104/+109
|
* Clean up non-fatal error handling - we know which error numbers we havejsing2014-04-163-105/+0
| | | | | | defined. ok miod@ beck@
* we don't use these files for buildingtedu2014-04-151-87/+0
|
* Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternitybeck2014-04-151-6/+0
| | | | | with the bearded ones... some API's that nobody should be using will dissapear with this commit.
* Toss a `unifdef -U OPENSSL_SYS_WINDOWS' bomb into crypto/bio.jsing2014-04-155-169/+3
| | | | ok miod@
* Remove VMS code.jsing2014-04-151-320/+0
| | | | ok miod@ beck@
* First pass at applying KNF to the OpenSSL code, which almost makes itjsing2014-04-1522-4669/+4676
| | | | | 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-154-24/+24
| | | | | where the return value is ignored changing to (void) snprintf. ok deraadt@
* remove auto-generated dependencies from the old unused build system, soderaadt2014-04-141-135/+0
| | | | | that it is easier to find code pieces. They are getting in the way. ok miod
* two SHUTDOWN2 got away; noticed by beckderaadt2014-04-142-2/+4
|
* Use shutdown(s, SHUT_RDWR) instead of shutdown(s, 2).matthew2014-04-132-2/+2
| | | | ok beck deraadt
* Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt2014-04-137-66/+66
| | | | | | which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
* Flense a variety of windows support stuff, and a strange gettimeofday function.beck2014-04-131-12/+0
| | | | ok deraadt@
* Remove some stuff that isn't needed.beck2014-04-133-26/+26
| | | | ok miod@ deraadt@
* Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.miod2014-04-132-30/+63
|
* resolve conflictsdjm2012-10-136-26/+1091
|
* OpenSSL 1.0.0f: mergedjm2012-01-052-7/+17
|
* openssl-1.0.0e: resolve conflictsdjm2011-11-037-21/+83
|
* resolve conflicts, fix local changesdjm2010-10-0114-441/+688
|
* This commit was generated by cvs2git to track changes on a CVS vendordjm2010-10-011-6/+7
|\ | | | | branch.
| * import OpenSSL-1.0.0adjm2010-10-011-6/+7
| |
* | This commit was generated by cvs2git to track changes on a CVS vendordjm2010-10-011-1/+9
|\ \ | | | | | | branch.
| * | import OpenSSL-1.0.0adjm2010-10-011-1/+9
| | |
* | | resolve conflictsdjm2009-04-062-10/+17
| | |
* | | resolve conflictsdjm2009-01-092-2/+2
| | |