Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | tweak previous; | jmc | 2014-07-13 | 1 | -2/+2 | |
| | ||||||
* | missing bracket in previous; | jmc | 2014-07-13 | 1 | -2/+2 | |
| | ||||||
* | Convert d2i_SSL_SESSION to ASN1 primitives, instead of the horrific | jsing | 2014-07-13 | 2 | -52/+594 | |
| | | | | | | | asn1_mac.h macros. This still needs a lot of improvement, but immediately becomes readable. ok miod@ (sight unseen!) | |||||
* | Remove license introduced with the PSK code, which has since been removed. | jsing | 2014-07-13 | 2 | -54/+2 | |
| | | | | ok deraadt@ | |||||
* | Another compression remnant. | jsing | 2014-07-13 | 2 | -4/+2 | |
| | ||||||
* | Expand the tlsext_sigalg macros. The end result is about the same number | jsing | 2014-07-13 | 2 | -32/+38 | |
| | | | | | | of lines and much more readable. ok miod@ | |||||
* | Rewrite i2d_SSL_SESSION to use the ASN1 primitives, rather than using the | jsing | 2014-07-13 | 2 | -150/+196 | |
| | | | | | | | | | | | horrific macros from asn1_mac.h. This is a classic example of using macros to obfuscate code, in an attempt to reduce the line count. The end result is so ridiculously convoluted that it is completely unreadable and it takes hours to deconstruct the macros and figure out what is actually going on behind the scenes. ok miod@ | |||||
* | Add a regress test for the ASN1 handling of SSL session tickets. | jsing | 2014-07-13 | 3 | -1/+389 | |
| | ||||||
* | The bell tolls for BUF_strdup - Start the migration to using | beck | 2014-07-13 | 40 | -145/+155 | |
| | | | | | | intrinsics. This is the easy ones, a few left to check one at a time. ok miod@ deraadt@ | |||||
* | Fix memory leak. | logan | 2014-07-13 | 2 | -2/+4 | |
| | | | | OK from beck@ and miod@ | |||||
* | OPENSSL_{malloc,free} -> {malloc,free} | miod | 2014-07-13 | 19 | -27/+27 | |
| | ||||||
* | Warn about the use of BUF_strdup. | miod | 2014-07-13 | 1 | -2/+4 | |
| | ||||||
* | Update BUGS section. | miod | 2014-07-13 | 1 | -4/+6 | |
| | ||||||
* | oops, i deleted the wrong word | tedu | 2014-07-13 | 1 | -2/+2 | |
| | ||||||
* | remove a lie spotted by guenther | tedu | 2014-07-13 | 1 | -5/+4 | |
| | ||||||
* | once srandomdev() is called, switch to using arc4random() but mask off the | tedu | 2014-07-13 | 1 | -12/+10 | |
| | | | | | high bit as required by posix. wouldn't want to break any standards. idea and ok deraadt | |||||
* | unbreak build this needed to be an and.. | beck | 2014-07-13 | 8 | -16/+16 | |
| | | | | ok jsing@ | |||||
* | Use dl_iterate_phdr() to iterate over the segments and throw the addresses | deraadt | 2014-07-13 | 4 | -4/+56 | |
| | | | | | | | into the hash; hoping the system has some ASLR or PIE. This replaces and substantially improves upon &main which proved problematic with some picky linkers. Work with kettenis, testing by beck | |||||
* | Split out ntoh[ls] and hton[ls] into their own manpage. | guenther | 2014-07-13 | 3 | -136/+199 | |
| | | | | | | Update byteorder(3) to cover the new functions in <endian.h> ok deraadt@ millert@ | |||||
* | Provide a link to the canonical API specification. | deraadt | 2014-07-13 | 8 | -8/+32 | |
| | | | | ok beck | |||||
* | Make sure all error conditions in RSA_padding_add_PKCS1_PSS_mgf1() cause | miod | 2014-07-13 | 2 | -6/+8 | |
| | | | | EVP_MD_CTX_cleanup() to be called. | |||||
* | Possible PBEPARAM leak in the error path. | miod | 2014-07-13 | 2 | -12/+16 | |
| | ||||||
* | dsa_priv_decode(): only destroy the object we've created, and with the | miod | 2014-07-13 | 2 | -6/+10 | |
| | | | | | | appropriate function. Checking for privkey != NULL is not enough since privkey points to a member of ndsa if ndsa != NULL. dsa_priv_encode(): possible double free in error path. | |||||
* | Check X509_NAME_oneline() return value when it will have to allocate memory. | miod | 2014-07-13 | 2 | -2/+6 | |
| | ||||||
* | EVP_DigestInit_ex() may be used to recycle an existing EVP_MD_CTX without having | miod | 2014-07-13 | 2 | -6/+18 | |
| | | | | | | | | | | | | | to reinitialize all of it, especially if it is used with the same MD algorithm. However, when the MD algorithm changes, it needs to perform more cleanups. Make that code more closer to what EVP_MD_CTX_cleanup() does by: - only freeing md_data if EVP_MD_CTX_FLAG_REUSE is not set - performing an explicit_bzero of md_data before freeing it - making sure we call EVP_PKEY_CTX_free on the pctx if the allocation for the new md_data fails. ok tedu@ | |||||
* | Don't include asn1_mac.h if all you need is asn1.h. | miod | 2014-07-13 | 2 | -4/+4 | |
| | ||||||
* | Take out __bounded__ in the include files we use it in when not on OpenBSD. | beck | 2014-07-13 | 8 | -10/+32 | |
| | | | | | | | 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@ | |||||
* | While we thought this would make portable life easier it actually | beck | 2014-07-13 | 1 | -3/+1 | |
| | | | | | makes it much harder. ok bcook@ kettenis@ | |||||
* | No need to include evp_locl.h in there. | miod | 2014-07-13 | 12 | -36/+12 | |
| | ||||||
* | 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@ | |||||
* | KNF and some code cleaning. | jsing | 2014-07-13 | 2 | -72/+92 | |
| | ||||||
* | remove silly cast | deraadt | 2014-07-13 | 2 | -4/+4 | |
| | ||||||
* | Another large dose of KNF. | jsing | 2014-07-13 | 2 | -472/+814 | |
| | ||||||
* | Apply a large dose of KNF. | jsing | 2014-07-12 | 2 | -252/+404 | |
| | ||||||
* | duplicate function names in head1 | miod | 2014-07-12 | 2 | -2/+2 | |
| | ||||||
* | The correct name for EDH is DHE, likewise EECDH should be ECDHE. | jsing | 2014-07-12 | 18 | -236/+236 | |
| | | | | | | Based on changes to OpenSSL trunk. ok beck@ miod@ | |||||
* | No need to include asn1_mac.h here. | miod | 2014-07-12 | 4 | -8/+4 | |
| | ||||||
* | remove double brackets. fixes build with clang. | jsg | 2014-07-12 | 2 | -4/+4 | |
| | | | | ok jsing@ | |||||
* | Remove this sentence: | miod | 2014-07-12 | 2 | -6/+4 | |
| | | | | | | | ``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 | 2 | -68/+56 | |
| | | | | | | 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 | 19 | -314/+73 | |
| | | | | done for other symmetric algorithms recently. | |||||
* | Provide ssl_version_string() function, which uses one of those modern C | jsing | 2014-07-12 | 8 | -56/+62 | |
| | | | | | | | | constructs (a switch statement) and returns the appropriate string defined by SSL_TXT_* for the given version, including support for DTLSv1 and DTLSv1-bad. Use this function in SSL_get_version() and SSL_SESSION_print(). ok beck@ | |||||
* | In openssl_startup(), call SSL_library_init() and SSL_load_error_strings(). | jsing | 2014-07-12 | 8 | -28/+10 | |
| | | | | | | | | This allows us to remove the ERR_load_crypto_strings() call, along with the various SSL_load_error_strings() and OpenSSL_add_ssl_algorithms() calls scattered around the place. ok beck@ | |||||
* | Make the BLOCK_CIPHER_{generic,custom} macros expand to more readable struct | miod | 2014-07-12 | 2 | -134/+204 | |
| | | | | definitions using C99 field initializers. No functional change. | |||||
* | Wrap "thread_private.h" with #ifdef __OpenBSD__ so that other systems | deraadt | 2014-07-12 | 1 | -1/+3 | |
| | | | | | | can copy this file (plus chacha_private.h) directly and reuse it trivially. Well, as long as they have a getentropy() as well.. ok beck | |||||
* | Remove extra parenthesis. | jsing | 2014-07-12 | 2 | -4/+4 | |
| | ||||||
* | need_cert is now always true, so remove the variable and associated | jsing | 2014-07-12 | 2 | -66/+42 | |
| | | | | | | conditionals. ok miod@ |