Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | When looking for the issuer of a certificate, if the current candidate is | miod | 2014-07-11 | 3 | -13/+97 | |
| | | | | | | | expired or not valid yet, continue looking; only return an expired certificate if no valid certificates have been found. OpenSSL PR #3359 via OpenSSL trunk. | |||||
* | Only import cryptlib.h in the four source files that actually need it. | jsing | 2014-07-11 | 22 | -85/+85 | |
| | | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@ | |||||
* | Explicitly include <openssl/opensslconf.h> in every file that references | jsing | 2014-07-10 | 7 | -9/+25 | |
| | | | | | | | | | an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers. | |||||
* | Stop including standard headers via cryptlib.h - pull in the headers that | jsing | 2014-07-10 | 8 | -12/+26 | |
| | | | | | | are needed in the source files that actually require them. ok beck@ miod@ | |||||
* | delete some casts. ok miod | tedu | 2014-07-10 | 1 | -2/+2 | |
| | ||||||
* | remove unused, private version strings except SSL_version_str | bcook | 2014-07-09 | 1 | -3/+1 | |
| | | | | | | Also remove unused des_ver.h, which exports some of these strings, but is not installed. ok miod@ tedu@ | |||||
* | Memory-leak-in-error-path of the day in X509_ATTRIBUTE_set1_data(). | miod | 2014-07-03 | 1 | -2/+3 | |
| | | | | ok logan@ beck@ | |||||
* | Fix a memory leak and another one that occurs in the error paths. | logan | 2014-06-28 | 1 | -2/+6 | |
| | | | | | | | (Thanks to Brent Cook) OK from tedu@ | |||||
* | Unifdef -UNO_SYS_TYPES_H | miod | 2014-06-24 | 1 | -4/+2 | |
| | ||||||
* | Since this is a library, place issetugid() before every getenv() | deraadt | 2014-06-23 | 2 | -5/+7 | |
| | | | | ok miod | |||||
* | wrap getenv OPENSSL_ALLOW_PROXY_CERTS in an issetugid check, to protect | deraadt | 2014-06-20 | 1 | -2/+2 | |
| | | | | | setuid applications from being fooled. ok miod | |||||
* | check stack push return and make some effort to clean up. ok beck miod | tedu | 2014-06-19 | 1 | -2/+6 | |
| | ||||||
* | improve error checking. set error code on error, and check malloc return. | tedu | 2014-06-19 | 1 | -2/+13 | |
| | | | | add missing unlock in one case. ok lteo miod | |||||
* | tags as requested by miod and tedu | deraadt | 2014-06-12 | 26 | -26/+26 | |
| | ||||||
* | Stop setting the EVP_MD_CTX_FLAG_NON_FIPS_ALLOW - it has been ignored since | jsing | 2014-06-11 | 1 | -1/+0 | |
| | | | | | | OpenSSL 1.0.0. ok miod@ (a little while back) | |||||
* | malloc() result does not need a cast. | deraadt | 2014-06-07 | 3 | -6/+6 | |
| | | | | ok miod | |||||
* | no need for null check before free. from Brendan MacDonell | tedu | 2014-05-30 | 2 | -4/+2 | |
| | ||||||
* | convert 53 malloc(a*b) to reallocarray(NULL, a, b). that is 53 | deraadt | 2014-05-29 | 1 | -1/+1 | |
| | | | | | | | | | potential integer overflows easily changed into an allocation return of NULL, with errno nicely set if need be. checks for an allocations returning NULL are commonplace, or if the object is dereferenced (quite normal) will result in a nice fault which can be detected & repaired properly. ok tedu | |||||
* | Everything sane has stdio, and FILE *. we don't need ifdefs for this. | beck | 2014-05-29 | 2 | -22/+0 | |
| | | | | ok to firebomb from tedu@ | |||||
* | Any sane platform has stdio. Stop pretending we will ever use a platform | beck | 2014-05-29 | 3 | -8/+0 | |
| | | | | | that does not. "fire bomb" tedu@ | |||||
* | calloc instead of malloc/memset. from Benjamin Baier | tedu | 2014-05-25 | 2 | -4/+2 | |
| | ||||||
* | Almost nothing actually needs to include <openssl/e_os2.h>, however by | jsing | 2014-05-24 | 1 | -1/+2 | |
| | | | | | | | including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@ | |||||
* | Replace all use of ERR_add_error_data with ERR_asprintf_error_data. | beck | 2014-04-26 | 2 | -2/+2 | |
| | | | | | | | | 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@ | |||||
* | Restore beck's (void)snprintf(): they were reviewed. | guenther | 2014-04-20 | 2 | -3/+3 | |
| | ||||||
* | KNF. | jsing | 2014-04-20 | 5 | -238/+305 | |
| | ||||||
* | More KNF. | jsing | 2014-04-20 | 2 | -3/+3 | |
| | ||||||
* | KNF. | jsing | 2014-04-20 | 6 | -714/+951 | |
| | ||||||
* | KNF. | jsing | 2014-04-20 | 6 | -470/+592 | |
| | ||||||
* | KNF. | jsing | 2014-04-20 | 4 | -264/+359 | |
| | ||||||
* | More KNF. | jsing | 2014-04-19 | 3 | -33/+34 | |
| | ||||||
* | We'll interpret a (void) cast on snprintf() to mean it's been verified that | guenther | 2014-04-19 | 2 | -2/+2 | |
| | | | | | | truncation is either desirable, not an issue, or is detected and handled later ok deraadt@ | |||||
* | blunt force knf | tedu | 2014-04-18 | 19 | -1245/+924 | |
| | ||||||
* | no need for a variable which is hardcoded and only used in an snprintf, | sthen | 2014-04-17 | 1 | -13/+9 | |
| | | | | ok giovanni@. tidy comments nearby while there. | |||||
* | Some VMS and WIN32 cleanup | giovanni | 2014-04-17 | 1 | -28/+5 | |
| | | | | ok miod@ lteo@ | |||||
* | Mostly gut e_os.h: | deraadt | 2014-04-17 | 1 | -1/+1 | |
| | | | | | | | | 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 | |||||
* | Use of OPENSSL_SYS_xxx defines in public header files considered harmful. | miod | 2014-04-17 | 1 | -7/+0 | |
| | ||||||
* | fix some more leaks, mostly suggestions from miod | jsg | 2014-04-17 | 2 | -0/+3 | |
| | | | | ok miod@ | |||||
* | some KNF cleanup following the script | deraadt | 2014-04-17 | 3 | -64/+64 | |
| | ||||||
* | fix some of the leaks | jsg | 2014-04-17 | 1 | -1/+3 | |
| | | | | ok miod@ looks good deraadt@ | |||||
* | Change library to use intrinsic memory allocation functions instead of | beck | 2014-04-17 | 9 | -41/+41 | |
| | | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free | |||||
* | Clean up dangerous strncpy use. This included a use where the resulting | beck | 2014-04-16 | 2 | -5/+2 | |
| | | | | | | | string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@ | |||||
* | we don't use these files for building | tedu | 2014-04-15 | 1 | -85/+0 | |
| | ||||||
* | The NO_ASN1_OLD define was introduced in 0.9.7, 8 years ago, to allow for | miod | 2014-04-15 | 1 | -11/+0 | |
| | | | | | | | | | | obsolete (and mostly internal) routines to be compiled out. We don't expect any reasonable software to stick to these interfaces, so better clean up the view and unifdef -DNO_ASN1_OLD. The astute reader will notice the existence of NO_OLD_ASN1 which serves a similar purpose, but is more entangled. Its time will come, soon. | |||||
* | Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternity | beck | 2014-04-15 | 1 | -40/+0 | |
| | | | | | with the bearded ones... some API's that nobody should be using will dissapear with this commit. | |||||
* | First pass at applying KNF to the OpenSSL code, which almost makes it | jsing | 2014-04-15 | 3 | -700/+739 | |
| | | | | | readable. This pass is whitespace only and can readily be verified using tr and md5. | |||||
* | Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversions | beck | 2014-04-15 | 2 | -3/+3 | |
| | | | | | where the return value is ignored changing to (void) snprintf. ok deraadt@ | |||||
* | correct cases of code occuring directly after goto/break/return | jsg | 2014-04-15 | 1 | -1/+0 | |
| | | | | ok miod@ guenther@ | |||||
* | remove auto-generated dependencies from the old unused build system, so | deraadt | 2014-04-14 | 1 | -322/+0 | |
| | | | | | that it is easier to find code pieces. They are getting in the way. ok miod | |||||
* | Cope with the removal of openssl/symhacks.h | deraadt | 2014-04-13 | 2 | -2/+0 | |
| | ||||||
* | Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery. | miod | 2014-04-13 | 4 | -17/+26 | |
| |