summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bio
AgeCommit message (Collapse)Author
2014-05-05Sort and group includes.Joel Sing
2014-05-05Repair BIO_socket_nbio operation.Joel Sing
ok miod@
2014-04-27Use C99 initializers for the various FOO_METHOD structs. More readable, andMiod Vallat
avoid unreadable/unmaintainable constructs like that: const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { EVP_PKEY_CMAC, EVP_PKEY_CMAC, 0, "CMAC", "OpenSSL CMAC method", 0,0,0,0, 0,0,0, cmac_size, 0, 0,0,0,0,0,0,0, cmac_key_free, 0, 0,0 }; ok matthew@ deraadt@
2014-04-26Replace all use of ERR_add_error_data with ERR_asprintf_error_data.Bob Beck
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@
2014-04-26This is not FreeBSD.Joel Sing
ok miod@
2014-04-23The usual idiom to cope with systems not defining socklen_t is to add aMiod Vallat
#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@
2014-04-23close socket in failure cases tooTed Unangst
2014-04-23if realloc failed, BIO_accept would leak memory and return NULL, causingTed Unangst
caller to crash. Fix leak and return an error instead. from Chad Loder
2014-04-21wrong calloc, see people do careTheo de Raadt
2014-04-21Replace entire printf-like guts with calls to libc snprintf.Theo de Raadt
funopen(3) is used to interface to BIO descriptors. ok guenther
2014-04-21Bring malloc/calloc/realloc sequences to modern standardTheo de Raadt
ok guenther
2014-04-19We'll interpret a (void) cast on snprintf() to mean it's been verified thatPhilip Guenther
truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
2014-04-19use intrinsic strlcpy and strlcat everywhere so we only have one set ofBob Beck
funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
2014-04-18unifdef NO_SOCKTed Unangst
2014-04-18Put the final pieces from e_os.h in the required places, and remove it.Theo de Raadt
"dance on it's grave" says beck ok guenther beck
2014-04-18unistd.h for protos where neededTheo de Raadt
2014-04-17don't fake up SSIZE_MAXTed Unangst
2014-04-17more windows/netware leftoversTed Unangst
2014-04-17delete if 0 codeTed Unangst
2014-04-17kill REF_PRINT/REF_CHECK debugging framework noone would useTheo de Raadt
ok miod
2014-04-17Mostly gut e_os.h:Theo de Raadt
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
2014-04-17some KNF cleanup following the scriptTheo de Raadt
2014-04-17Change library to use intrinsic memory allocation functions instead ofBob Beck
OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
2014-04-17Revert unintended whitespace changes.Joel Sing
2014-04-17tag some functions with bounded. idea and ok djmTed Unangst
2014-04-16Clean up dangerous strncpy use. This included a use where the resultingBob Beck
string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@
2014-04-16- Why do we hide from the OpenSSL police, dad?Miod Vallat
- 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@
2014-04-16> As I walk through the valley of the shadow of deathTed Unangst
> 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
2014-04-16More KNF.Joel Sing
2014-04-16More KNF.Joel Sing
2014-04-16Clean up non-fatal error handling - we know which error numbers we haveJoel Sing
defined. ok miod@ beck@
2014-04-15we don't use these files for buildingTed Unangst
2014-04-15Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternityBob Beck
with the bearded ones... some API's that nobody should be using will dissapear with this commit.
2014-04-15Toss a `unifdef -U OPENSSL_SYS_WINDOWS' bomb into crypto/bio.Joel Sing
ok miod@
2014-04-15Remove VMS code.Joel Sing
ok miod@ beck@
2014-04-15First pass at applying KNF to the OpenSSL code, which almost makes itJoel Sing
readable. This pass is whitespace only and can readily be verified using tr and md5.
2014-04-15Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversionsBob Beck
where the return value is ignored changing to (void) snprintf. ok deraadt@
2014-04-14remove auto-generated dependencies from the old unused build system, soTheo de Raadt
that it is easier to find code pieces. They are getting in the way. ok miod
2014-04-14two SHUTDOWN2 got away; noticed by beckTheo de Raadt
2014-04-13Use shutdown(s, SHUT_RDWR) instead of shutdown(s, 2).Matthew Dempsky
ok beck deraadt
2014-04-13Remove various horrible socket syscall wrappers, especially SHUTDOWN*Theo de Raadt
which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
2014-04-13Flense a variety of windows support stuff, and a strange gettimeofday function.Bob Beck
ok deraadt@
2014-04-13Remove some stuff that isn't needed.Bob Beck
ok miod@ deraadt@
2014-04-13Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.Miod Vallat
2012-10-13resolve conflictsDamien Miller
2012-01-05OpenSSL 1.0.0f: mergeDamien Miller
2011-11-03openssl-1.0.0e: resolve conflictsDamien Miller
2010-10-01resolve conflicts, fix local changesDamien Miller
2009-04-06resolve conflictsDamien Miller
2009-01-09resolve conflictsDamien Miller