Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | decompress libssl. ok beck jsing | tedu | 2014-07-10 | 49 | -1469/+77 |
| | |||||
* | KNF comments, reflowing and moving out of the middle of argument lists in | guenther | 2014-07-10 | 6 | -186/+300 |
| | | | | | | places ok jsing@ | ||||
* | remove unused ecc_pkey_size. | bcook | 2014-07-10 | 2 | -8/+4 |
| | | | | ok jsing@ miod@ | ||||
* | BN_free, BN_clear_free, BN_CTX_free, BN_BLINDING_free and BN_MONT_CTX_free | jsing | 2014-07-10 | 12 | -110/+64 |
| | | | | | | all have implicit NULL checks, so we do not need them here. ok miod@ | ||||
* | Use a while loop instead of an ifdowhile loop. | jsing | 2014-07-10 | 4 | -24/+20 |
| | | | | ok miod@ tedu@ | ||||
* | Add some extra sanity checks to make sure the test functions actually | matthew | 2014-07-09 | 1 | -1/+13 |
| | | | | run on altstack. | ||||
* | include <limits.h> for LONG_MIN/LONG_MAX. | bcook | 2014-07-09 | 2 | -4/+4 |
| | | | | | | | Also remove <sys/filio.h> added from previous commit. This was the wrong way to get FIONBIO. ok jsing@ | ||||
* | ASN1_STRING_free can handle NULL, so callers don't need to check. ok miod | tedu | 2014-07-09 | 10 | -54/+34 |
| | |||||
* | unfidef RL_DEBUG. hopefully it's been debugged by now | tedu | 2014-07-09 | 2 | -50/+2 |
| | |||||
* | firebomb some MDEBUG leftovers | tedu | 2014-07-09 | 1 | -87/+1 |
| | |||||
* | unifdef a whole bunch of NO RSA/DSA/ECDH defines i deleted from libssl | tedu | 2014-07-09 | 12 | -190/+12 |
| | |||||
* | clean up if 0/if 1 code. we don't care anymore. | tedu | 2014-07-09 | 2 | -119/+3 |
| | |||||
* | move a comment | tedu | 2014-07-09 | 1 | -3/+3 |
| | |||||
* | reset host, port, path to null after freeing so the caller doesn't | tedu | 2014-07-09 | 2 | -2/+8 |
| | | | | | accidentally free them again. actually a bug in the caller and (hey hey) apps/ocsp.c has exactly that bug, but it's easier/safer to fix here. | ||||
* | stale prototype | tedu | 2014-07-09 | 2 | -4/+2 |
| | |||||
* | Make comments readable. | jsing | 2014-07-09 | 2 | -54/+66 |
| | |||||
* | More KNF. | jsing | 2014-07-09 | 38 | -644/+662 |
| | |||||
* | KNF. | jsing | 2014-07-09 | 4 | -246/+216 |
| | |||||
* | reduce obvious dependency on global g_pool by moving to local aliases | tedu | 2014-07-09 | 1 | -42/+48 |
| | | | | ok otto | ||||
* | ocsp_check_ids says "If algoritm mismatch let caller deal with it" before | tedu | 2014-07-09 | 2 | -12/+2 |
| | | | | | | returning 2. The one and only caller doesn't check for that, so... Stop returning it. ok miod | ||||
* | Minor cleanups | matthew | 2014-07-09 | 1 | -5/+12 |
| | | | | | | | | | | | | | Rename _waitpid() to safewaitpid() to avoid POSIX reserved identifier namespace. KNF nit: return value expressions should be surrounded by parentheses, per style(9). Ensure SIGCHLD is set to SIG_DFL, not SIG_IGN. POSIX allows (and requires under XSI) that terminated child processes not leave zombies if SIGCHLD is set to SIG_IGN, and it also allows execve() to leave SIGCHLD set to SIG_IGN. | ||||
* | Better workaround for OS X sigaltstack() bug | matthew | 2014-07-09 | 1 | -15/+20 |
| | | | | | | | OS X's sigaltstack() fails with ENOMEM if ss_size < MINSIGSTKSZ even if SS_DISABLE is specified in ss_flags. Rather than add code to try to cope with this stupidity, just don't bother restoring the original signal stack. | ||||
* | Update to match the current state of crypto/rand, and remove MLINKS for | miod | 2014-07-09 | 9 | -199/+31 |
| | | | | RAND_event and RAND_screen. | ||||
* | Remove mention that the PRNG needs to be seeded before invoking some | miod | 2014-07-09 | 28 | -73/+8 |
| | | | | functions. | ||||
* | Unifdef -UPKCS_TESTVECT - we don't want the random data used in OAEP padding | miod | 2014-07-09 | 2 | -12/+2 |
| | | | | to get overwritten by a known value, ever. | ||||
* | rephrase the stpcpy() warning | naddy | 2014-07-09 | 1 | -2/+2 |
| | | | | new wording agreed by at least kettenis@ millert@ otto@ | ||||
* | {malloc,reallocarray} + memset(,0,) -> calloc | miod | 2014-07-09 | 4 | -14/+10 |
| | | | | ok tedu@ | ||||
* | Clean up after arc4random u_int32_t uint32_t change | beck | 2014-07-09 | 1 | -5/+5 |
| | | | | ok jsing@ | ||||
* | changes to improve portability | bcook | 2014-07-09 | 1 | -10/+11 |
| | | | | ok beck@ deraadt@ jsing@ guenther@ | ||||
* | Replace memset(a, 0, ...); free(a); by explicit_bzero(a, ...); free(a); in | miod | 2014-07-09 | 2 | -4/+4 |
| | | | | | | | fear a smartass-optimizing compiler decides memset is useless immediately before free(). ok jsing@ deraadt@ tedu@ | ||||
* | Remove leading underscore from _BYTE_ORDER and _{LITTLE,BIG}_ENDIAN, to be | miod | 2014-07-09 | 22 | -120/+120 |
| | | | | | more friendly to systems where the underscore flavours may be defined as empty. Found the hard way be bcook@; joint brainstrom with bcook beck and guenther | ||||
* | miod@ fixed the "bug" so remove reference to it in the man pod^Wpage. | jsing | 2014-07-09 | 2 | -10/+0 |
| | |||||
* | add <sys/filio.h> header for FIONBIO | bcook | 2014-07-09 | 2 | -2/+4 |
| | | | | ok beck@ | ||||
* | check for EINTR when calling waitpid. | bcook | 2014-07-09 | 1 | -2/+13 |
| | | | | ok jsing@ | ||||
* | check if we were previously on a signal stack before restoring. | bcook | 2014-07-09 | 1 | -2/+3 |
| | | | | | | | | OS X fails to restore the old signal stack because the signal stack is not enabled by default. This causes sigaltstack(2) to fail with ENOMEM as ss_size is 0, < MINSIGSTCKSZ. ok jsing@ | ||||
* | Clean up and simplify SSL_CIPHER_description by always using asprintf. If | jsing | 2014-07-09 | 2 | -108/+108 |
| | | | | | | | a buffer was supplied then we copy the result into it. Also make the failure case return values match the documentation. Joint work with beck@ | ||||
* | Simplify error path of DH_check_pub_key() | miod | 2014-07-09 | 2 | -16/+8 |
| | |||||
* | KNF | miod | 2014-07-09 | 18 | -1134/+1198 |
| | |||||
* | remove unused variables getentropy for OS X | bcook | 2014-07-09 | 2 | -6/+6 |
| | | | | ok beck@ | ||||
* | Rewrite gcm128test as a table-driven regress instead of using defines. | jsing | 2014-07-09 | 2 | -293/+852 |
| | | | | | | This avoids compiler warnings for always true/false conditionals and makes the code readable. Also avoid pulling in modes_lcl.h, which should not be used outside the library. | ||||
* | tedu the SSL export cipher handling - since we do not have enabled export | jsing | 2014-07-09 | 21 | -724/+93 |
| | | | | | | ciphers we no longer need the flags or code to support it. ok beck@ miod@ | ||||
* | cast ASN1_STRING (unsigned char *) to match strlcat's argument (char *) | bcook | 2014-07-09 | 2 | -4/+4 |
| | | | | ok beck@ | ||||
* | remove unused, private version strings except SSL_version_str | bcook | 2014-07-09 | 72 | -340/+70 |
| | | | | | | Also remove unused des_ver.h, which exports some of these strings, but is not installed. ok miod@ tedu@ | ||||
* | Make use of this wonderful modern C construct known as a `switch', instead of | miod | 2014-07-09 | 2 | -22/+34 |
| | | | | 8-line if() tests. | ||||
* | KNF | miod | 2014-07-09 | 22 | -1812/+1878 |
| | |||||
* | Kill more FIPS tentacles by removing the private_AES_set_{enc,dec}rypt_key() | miod | 2014-07-09 | 16 | -168/+120 |
| | | | | | | | | internal interfaces, and promoting them to being the public AES_set_{enc,dec}rypt_key() interfaces. In non-FIPS mode, these public interfaces were directly calling the private ones. ok guenther@ jsing@ | ||||
* | Be more strict in RSA_padding_check_X931(), and thus avoid a possible | miod | 2014-07-09 | 2 | -4/+4 |
| | | | | | memcpy() with a negative size. ok tedu@ | ||||
* | Remove typecasts on password_callback. | bcook | 2014-07-09 | 3 | -20/+15 |
| | | | | | | | Rather than casting password_callback to the correct function pointer signature at every call site, change it to match the signature instead. ok miod@ deraadt@ tedu@ | ||||
* | In the old days (not in this century), SSLeay 0.4.5 would create X.509 RSA | miod | 2014-07-09 | 2 | -28/+6 |
| | | | | | | | | | signatures using the wrong oid for the signature type. The signature verification code has thus been modified to allow these signatures to be accepted, with a printf to stderr to notify the user something was fishy. Remove this chunk; these signatures will no longer get accepted. ok deraadt@ guenther@ jsing@ tedu@ | ||||
* | Remove RSA_memory_lock(). This undocumented function sort-of serializes your | miod | 2014-07-09 | 4 | -102/+4 |
| | | | | | | | | | | RSA components to memory and clears them, but there is no unserializing function, so its usefulness is close to zero. A grep through the ports tree sources show that it is only present in ports embedding their own openssl copy, and never used otherwise. ok jsing@ |