Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Take out __bounded__ in the include files we use it in when not on OpenBSD. | beck | 2014-07-13 | 4 | -5/+16 |
| | | | | | | | while we can take it out in portable at compile time, it is still a problem when we install this header file on a system that doesn't support __bounded__ if this is unguarded. ok miod@ bcook@ | ||||
* | No need to include evp_locl.h in there. | miod | 2014-07-13 | 6 | -18/+6 |
| | |||||
* | Take away the use of the address of main as a source of entropy. Causes | beck | 2014-07-13 | 6 | -6/+30 |
| | | | | | | distractions to people testing and seeing link errors in some setups. This will come back in another form ok deraadt@ | ||||
* | remove silly cast | deraadt | 2014-07-13 | 1 | -2/+2 |
| | |||||
* | No need to include asn1_mac.h here. | miod | 2014-07-12 | 2 | -4/+2 |
| | |||||
* | Remove this sentence: | miod | 2014-07-12 | 1 | -3/+2 |
| | | | | | | | ``The probability that a randomly generated key is weak is -1/2^52, so it is not really worth checking for them.'' This kind of naively optimistic attitude is not compatible with security. | ||||
* | more MLINKS | miod | 2014-07-12 | 1 | -1/+56 |
| | |||||
* | getentropy on Windows. It compiles but has not been thoroughly tested yet. | wouter | 2014-07-12 | 2 | -0/+112 |
| | | | | OK: beck@ | ||||
* | Remove signed/unsigned warning, statement before declaration and | wouter | 2014-07-12 | 6 | -58/+64 |
| | | | | | | add a function to use function pointers that does not take sizeof(fptr). OK beck@ | ||||
* | We have EVP_CIPH_FLAG_DEFAULT_ASN1 in evp.h; no need to keep constructs to | miod | 2014-07-12 | 1 | -34/+28 |
| | | | | | | build on pre-EVP_CIPH_FLAG_DEFAULT_ASN1 codebases. ok jsing@ | ||||
* | Remove private_{Camellia,RC4}_set_key FIPS indirection tentacles, as has been | miod | 2014-07-12 | 10 | -159/+37 |
| | | | | done for other symmetric algorithms recently. | ||||
* | Make the BLOCK_CIPHER_{generic,custom} macros expand to more readable struct | miod | 2014-07-12 | 1 | -67/+102 |
| | | | | definitions using C99 field initializers. No functional change. | ||||
* | jsing and I are investigating removal of all? most? 'getenv from library' | deraadt | 2014-07-12 | 1 | -1/+3 |
| | | | | | | | instances. This one for OPENSSL_ALLOW_PROXY_CERTS gets turned off first, especially since it had this special comment: /* A hack to keep people who don't want to modify their software happy */ ok beck jsing | ||||
* | A few fixes/improvements: | miod | 2014-07-12 | 1 | -20/+19 |
| | | | | | | | | | | | | | | | | - first, BN_free == BN_clear_free in our libcrypto, so we do not need to treat CBIGNUM (crypto BN) separately from BIGNUM (regular BN). - then, in bn_i2c(), since BN_bn2bin returns BN_num_bytes(input), take advantage of this to avoid calling BN_num_bytes() a second time. BN_num_bytes() is cheap, but this not a reason to perform redundant work. - finally, in bn_c2i, if bn_new() fails, return early. Otherwise BN_bin2bn will try to create a BN too, and although this will probably fail since we were already out of memory, if we are on a threaded process and suddenly the allocation succeeds, we will leak it since it will never be stored in *pval. ok jsing@ | ||||
* | Make sure the return value of X509_NAME_oneline(, NULL,) is checked against | miod | 2014-07-12 | 2 | -5/+13 |
| | | | | | NULL. ok deraadt@ guenther@ jsing@ | ||||
* | if (x) FOO_free(x) -> FOO_free(x). | miod | 2014-07-12 | 62 | -535/+311 |
| | | | | | | | Improves readability, keeps the code smaller so that it is warmer in your cache. review & ok deraadt@ | ||||
* | more MLINKs | miod | 2014-07-12 | 1 | -1/+4 |
| | |||||
* | guard inclusion of sys/sysctl.h so we can detect at compile time and | beck | 2014-07-12 | 2 | -2/+6 |
| | | | | | keep linux distros happy that don't have it. ok bcook@ | ||||
* | Principle of least surprise: make CMAC_CTX_free(), OCSP_REQ_CTX_free() and | miod | 2014-07-12 | 3 | -3/+12 |
| | | | | | X509_STORE_CTX_free() accept NULL pointers as input without dereferencing them, like all the other well-behaved *_CTX_free() functions do. | ||||
* | remove gratuitous differences, ok beck | deraadt | 2014-07-12 | 2 | -78/+80 |
| | |||||
* | remove gratuitous differences, ok beck bcook | deraadt | 2014-07-12 | 4 | -24/+24 |
| | |||||
* | Solaris uses a symbolic link for /dev/urandom which harms best practice of | beck | 2014-07-12 | 2 | -36/+68 |
| | | | | | using O_NOFOLLOW - cope with it as best as possible by trying two different paths. - written by deraadt@ and kettenis@ | ||||
* | typos | miod | 2014-07-12 | 3 | -5/+5 |
| | |||||
* | odds are that some ABI change occured today, no matter how careful everyone | deraadt | 2014-07-12 | 2 | -2/+2 |
| | | | | is | ||||
* | Provide LIBRESSL_VERSION_NUMBER for people who use such things to | beck | 2014-07-11 | 1 | -1/+2 |
| | | | | | detect versions distinct from OPENSSL_BLAH_WOOF.. ok jsing@ tedu@ deraadt@ | ||||
* | add comment about format requirements | beck | 2014-07-11 | 1 | -1/+3 |
| | | | | ok miod@ | ||||
* | adapt addapt spelling to adapt; request from miod | deraadt | 2014-07-11 | 1 | -3/+3 |
| | |||||
* | Huge documentation update for libcrypto and libssl, mostly from Matt Caswell, | miod | 2014-07-11 | 31 | -91/+1376 |
| | | | | | | Jeff Trawick, Jean-Paul Calderone, Michal Bozon, Jeffrey Walton and Rich Salz, via OpenSSL trunk (with some parts not applying to us, such as SSLv2 support, at least partially removed). | ||||
* | Avoid invoking EVP_CIPHER_CTX_cleanup() on uninitialized memory; from | miod | 2014-07-11 | 1 | -2/+2 |
| | | | | Coverity via OpenSSL trunk | ||||
* | Fix a memory leak in BIO_free() which no current BIO can trigger; OpenSSL | miod | 2014-07-11 | 1 | -4/+3 |
| | | | | PR #3439 via OpenSSL trunk | ||||
* | Prevent infinite loop during configuration file parsing; OpenSSL PR #2985 | miod | 2014-07-11 | 1 | -2/+2 |
| | | | | via OpenSSL trunk. | ||||
* | Missing bounds check in do_PVK_body(); OpenSSL RT #2277, from OpenSSL trunk, | miod | 2014-07-11 | 1 | -4/+10 |
| | | | | but without a memory leak. | ||||
* | OPENSSL_ALGORITHM_DEFINES has been removed from conf.h, no need for it now | tedu | 2014-07-11 | 1 | -8/+2 |
| | |||||
* | In RSA_eay_private_encrypt(), correctly return the smaller BN; OpenSSL | miod | 2014-07-11 | 1 | -2/+2 |
| | | | | PR #3418 via OpenSSL trunk | ||||
* | it has been 4888 days since the transient feature to define short macros | tedu | 2014-07-11 | 1 | -58/+1 |
| | | | | | for apps that haven't had time to make the appropriate changes was added. time's up. | ||||
* | Apparently better fix for OpenSSL PR #3397 (Joyent bug #7704), from OpenSSL | miod | 2014-07-11 | 1 | -2/+2 |
| | | | | trunk | ||||
* | In ASN1_get_object(), reject primitive encodings using the indefinite length | miod | 2014-07-11 | 1 | -1/+4 |
| | | | | constructed form. OpenSSL PR #2438 via OpenSSL trunk | ||||
* | Fix copy for CCM, GCM and XTS. | miod | 2014-07-11 | 1 | -12/+70 |
| | | | | | | | | Internal pointers in CCM, GCM and XTS contexts should either be NULL or set to point to the appropriate key schedule. This needs to be adjusted when copying contexts. OpenSSL PR #3272 with further fixes, from OpenSSL trunk | ||||
* | i'm a dumbdumb. fix build. | tedu | 2014-07-11 | 28 | -30/+30 |
| | |||||
* | In asn1_get_length(), tolerate leading zeroes in BER encoding. | miod | 2014-07-11 | 1 | -5/+8 |
| | | | | OpenSSL PR #2746 via OpenSSL trunk | ||||
* | In EVP_PBE_alg_add don't use the underlying NID for the cipher | miod | 2014-07-11 | 1 | -2/+2 |
| | | | | as it may have a non-standard key size; OpenSSL PR #3206 via OpenSSL trunk. | ||||
* | additional features: no buffer freelists and no heartbleed | tedu | 2014-07-11 | 1 | -0/+3 |
| | |||||
* | no compression is also a feature of libressl | tedu | 2014-07-11 | 1 | -0/+4 |
| | |||||
* | move all the feature settings to a common header. | tedu | 2014-07-11 | 30 | -1875/+104 |
| | | | | probably ok beck jsing miod | ||||
* | Tolerate critical AKID in CRLs; OpenSSL PR #3014 via OpenSSL trunk, and | miod | 2014-07-11 | 1 | -7/+8 |
| | | | | also update the comments to reflect what the code now does. | ||||
* | Fix OID encoding for single components. OpenSSL PR #2556 via OpenSSL trunk. | miod | 2014-07-11 | 1 | -1/+1 |
| | | | | (be sure to make cleandir and make includes before building) | ||||
* | More memory leaks and unchecked allocations; OpenSSL PR #3403 via OpenSSL | miod | 2014-07-11 | 4 | -7/+19 |
| | | | | trunk. (note we had already fixed some of the issues in that PR independently) | ||||
* | Fix incorrect duplicate mlinks | beck | 2014-07-11 | 1 | -8/+1 |
| | | | | ok bcook@ | ||||
* | Make sure BN_sqr never returns negative numbers. | miod | 2014-07-11 | 1 | -1/+2 |
| | | | | OpenSSL PR #3400 via OpenSSL trunk. | ||||
* | Correct incorrect mlinks | beck | 2014-07-11 | 1 | -5/+1 |
| | | | | ok bcook@ |