Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | include <sys/time.h> for gettimeofday(2) | bcook | 2015-10-07 | 2 | -2/+4 | |
| | ||||||
* | prefer limits.h over sys/limits.h | bcook | 2015-10-06 | 1 | -3/+3 | |
| | | | | ok deraadt@ | |||||
* | Make sure dot is not set after tz - fixes incorrect handling, which allows | jsing | 2015-10-05 | 1 | -2/+2 | |
| | | | | | | 20151005171301+1.09Z to be treated as a valid time. ok beck@ | |||||
* | Apply some style(9), tweak a few things for readability and add some | jsing | 2015-10-04 | 1 | -36/+40 | |
| | | | | | | additional bounds checks. ok beck@ | |||||
* | SSL_new(): fix ref counting and memory leak in error path. | doug | 2015-10-03 | 2 | -16/+6 | |
| | | | | | | | | | | Rather than a half-hearted attempt to free up resources and fix ref counting at the SSL_CTX level, let SSL_free() do its job. This diff got lost in the shuffle somewhere. It's from last year. Ref counting error reported by Parakleta in github ticket #51. Thanks! ok jsing@, beck@ | |||||
* | Flense the greasy black guts of unreadble string parsing code out of three areas | beck | 2015-10-02 | 7 | -271/+332 | |
| | | | | | | | | | in asn1 and x509 code, all dealing with an ASN1_TIME. This brings the parsing together in one function that converts into a struct tm. While we are at it this also brings us into conformance with RFC 5280 for times allowed in an X509 cert, as OpenSSL is very liberal with what it allows. input and fixes from deraadt@ jsing@ guethther@ and others. ok krw@, guenther@, jsing@ | |||||
* | s/ssl3_client_kex/ssl3_send_client_kex/ for consistency with the caller. | jsing | 2015-10-02 | 2 | -18/+22 | |
| | ||||||
* | Place all of the ASN1 M_ macros under #ifndef LIBRESSL_INTERNAL. | jsing | 2015-09-30 | 1 | -30/+37 | |
| | ||||||
* | Expand M_i2d_ASN1_OCTET_STRING macros - no change in generated assembly, | jsing | 2015-09-30 | 1 | -3/+5 | |
| | | | | aside from line numbers. | |||||
* | s/M_ASN1_ENUMERATED_free/ASN1_ENUMERATED_free/ | jsing | 2015-09-30 | 1 | -2/+2 | |
| | ||||||
* | Replace M_ASN1_ENUMERATED_(free|new) with ASN1_ENUMERATED_(free|new). | jsing | 2015-09-30 | 1 | -3/+3 | |
| | ||||||
* | Replace M_ASN1_OCTET_STRING_(free|new) with ASN1_OCTET_STRING_(free|new). | jsing | 2015-09-30 | 15 | -49/+49 | |
| | ||||||
* | Replace M_ASN1_UTCTIME_(new|free) with ASN1_UTCTIME_(new|free). | jsing | 2015-09-30 | 1 | -3/+3 | |
| | ||||||
* | Replace M_ASN1_IA5STRING_(new|free) with ASN1_IA5STRING_(new|free). Same | jsing | 2015-09-30 | 3 | -9/+9 | |
| | | | | with one s/M_ASN1_VISIBLESTRING_new/ASN1_VISIBLESTRING_new/. | |||||
* | Replace M_ASN1_GENERALIZEDTIME_(new|free) with | jsing | 2015-09-30 | 3 | -7/+7 | |
| | | | | ASN1_GENERALIZEDTIME_(new|free). | |||||
* | s/M_ASN1_TIME_free/ASN1_TIME_free/ | jsing | 2015-09-30 | 2 | -7/+7 | |
| | ||||||
* | Replace M_ASN1_INTEGER_(new|free) with ASN1_INTEGER_(new|free) - this is | jsing | 2015-09-30 | 12 | -41/+41 | |
| | | | | | | | different from the macro expansion, but the result is the same. Also replace some ASN1_STRING_dup() with ASN1_INTEGER_dup(). ok beck@ doug@ | |||||
* | Remove unnecessary type assignments - M_ASN1_INTEGER_new() already sets | jsing | 2015-09-30 | 1 | -3/+1 | |
| | | | | | | the type to V_ASN1_INTEGER. ok doug@ | |||||
* | fix two typos. | sobrado | 2015-09-30 | 1 | -2/+2 | |
| | ||||||
* | Remove support for NO_ASN1_TYPEDEFS. | doug | 2015-09-30 | 1 | -21/+1 | |
| | | | | | | | This ifdef was introduced 15 years ago and was known to cause problems with STACK_OF() back then. ok jsing@, beck@, jca@ | |||||
* | convert "last_time" to a time_t, to handle beyond Y2038 | deraadt | 2015-09-29 | 2 | -14/+14 | |
| | | | | ok guenther miod | |||||
* | Replace remaining M_ASN1_BIT_STRING_(new|free) macros with calls to | jsing | 2015-09-29 | 3 | -9/+9 | |
| | | | | | | ASN1_BIT_STRING_(new|free). ok beck@ doug@ | |||||
* | remove excessive brackets on pointer math | deraadt | 2015-09-28 | 1 | -8/+8 | |
| | ||||||
* | Redo 1.25, without the NULL deref. | miod | 2015-09-27 | 1 | -22/+31 | |
| | | | | ok sthen@ bcook@ | |||||
* | bump to 2.3.1 | bcook | 2015-09-27 | 1 | -3/+3 | |
| | ||||||
* | Use ASN1_item_dup() instead of ASN1_dup(). | jsing | 2015-09-26 | 2 | -7/+5 | |
| | | | | ok bcook@ | |||||
* | We don't need no stinking "EXAMPLE OF THE DSA" or README (the credits are | jsing | 2015-09-26 | 2 | -126/+0 | |
| | | | | | | already in the code). ok beck@ miod@ | |||||
* | typos in documentation; better wording, suggested by jmc@libressl-v2.3.0 | sobrado | 2015-09-22 | 25 | -43/+43 | |
| | | | | ok jmc@ | |||||
* | avoid void * pointer arithmetic | bcook | 2015-09-18 | 1 | -2/+2 | |
| | | | | ok miod@ | |||||
* | Revert bn_print.c:r1.25 ("handle negative-zero in BN_bn2dec() too") for | sthen | 2015-09-18 | 1 | -31/+22 | |
| | | | | now, it has a NULL deref. Segfault reported by Mikolaj Kucharski, ok bcook | |||||
* | Remove more EVP_sha() SHA-0 references. | bcook | 2015-09-17 | 1 | -2/+2 | |
| | ||||||
* | Re-add missing comma from SHA-0 removal which breaks mlinks generation. | sthen | 2015-09-17 | 1 | -1/+1 | |
| | | | | Worked out by bcook@ | |||||
* | include stdint.h for uint64_t | bcook | 2015-09-17 | 1 | -1/+2 | |
| | | | | noted by Bernard Spil | |||||
* | Add support for disabling certificate and CRL validity checking. | jsing | 2015-09-14 | 2 | -11/+15 | |
| | | | | | | Loosely based on changes in OpenSSL. ok beck@ | |||||
* | delete bogus trailing .Ns from SYNOPSIS .Ft macros | schwarze | 2015-09-14 | 2 | -12/+12 | |
| | ||||||
* | fix formatting by adding the required quotes to .Fa in the SYNOPSIS | schwarze | 2015-09-14 | 4 | -22/+22 | |
| | ||||||
* | Remove useless quoting from .Fo and .Fn function names, to prevent | schwarze | 2015-09-14 | 2 | -6/+6 | |
| | | | | | | development of a cargo cult in case people look at existing files for examples. This achieves a consistent .Fo and .Fn quoting style across the whole tree. | |||||
* | Temporarily revive MD4 for MS CHAP support. | doug | 2015-09-14 | 16 | -23/+666 | |
| | ||||||
* | Crank major version due to removal of SHA-0 and MD4 from libcrypto. | doug | 2015-09-13 | 2 | -4/+4 | |
| | ||||||
* | Remove MD4 support from LibreSSL. | doug | 2015-09-13 | 16 | -666/+23 | |
| | | | | | | | | MD4 should have been removed a long time ago. Also, RFC 6150 moved it to historic in 2011. Rides the major crank from removing SHA-0. Discussed with many including beck@, millert@, djm@, sthen@ ok jsing@, input + ok bcook@ | |||||
* | Remove SHA-0 support. | doug | 2015-09-13 | 10 | -323/+16 | |
| | | | | | | | SHA-0 was withdrawn shortly after publication 20 years ago and replaced with SHA-1. This will require a major crank. ok bcook@, jsing@ | |||||
* | Since a major bump of libcrypto is coming, remove OPENSSL_ia32cap and | miod | 2015-09-13 | 2 | -17/+2 | |
| | | | | | OPENSSL_ia32cap_loc; nothing in ports uses them besides embedded copies of OpenSSL. This opens the `all hell gets loose' window. | |||||
* | Handle negative-zero in BN_bn2dec() too, just like in BN_print(). | deraadt | 2015-09-13 | 1 | -22/+31 | |
| | | | | ok miod | |||||
* | Reorder functions for readability/consistency. | jsing | 2015-09-13 | 1 | -235/+228 | |
| | ||||||
* | BN does support negative-zero -- BN_print() sets the standard here. | deraadt | 2015-09-13 | 1 | -3/+3 | |
| | | | | | | | BN_bn2hex() had a 1-byte overflow when creating "-0\0". Reported to me a while back by unknown person -- did not have enough experience to push this through then. advice from jsing, ok miod | |||||
* | Only check for key truncation if no KDF function is being used. | jsing | 2015-09-13 | 1 | -4/+4 | |
| | | | | ok beck@ miod@ | |||||
* | Stop generating private keys in a network buffer. | jsing | 2015-09-13 | 2 | -58/+58 | |
| | | | | | | | | | | The current client key exchange code generates DH and ECDH keys into the same buffer that we use to send data to the network - stop doing this and malloc() a new buffer, which we explicit_bzero() and free() on return. This also benefits from ASLR and means that the keys are no longer generated in a well known location. ok beck@ | |||||
* | Use ECDH_size() instead of rolling our own. | jsing | 2015-09-13 | 4 | -24/+22 | |
| | | | | ok beck@ | |||||
* | Switch to miod's shiny new OPENSSL_cpu_caps() and we can now also enable | jsing | 2015-09-13 | 2 | -6/+6 | |
| | | | | | | the AES acceleration checking for i386. ok beck@ miod@ | |||||
* | Merge ech_ossl.c into ech_key.c - not much point having one file with a | jsing | 2015-09-13 | 2 | -215/+146 | |
| | | | | | | four line function and a tonne of license text. ok beck@ |