Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-10-22 | Restore previous behaviour and allow | Joel Sing | |
ASN1_{GENERALIZED,UTC,}TIME_set_string() to be called with a NULL pointer. Found the hard way by @kinichiro on github. ok beck@ | |||
2015-10-21 | Reject too small bits value in BN_generate_prime_ex(), so that it does not risk | Miod Vallat | |
becoming negative in probable_prime_dh_safe(). Reported by Franck Denis who noticed `openssl gendh 0' would segfault. Fix adapted from OpenSSL RT#2701. ok beck@ jsing@ | |||
2015-10-21 | In the case where len is not a multiple of sizeof(RC4_CHUNK) the RC4 code | Joel Sing | |
will end up doing a read and write of up to 7 bytes beyond the specified length. This is effectively a non-issue since we read and write back the same data and due to alignment it is within a page boundary. Regardless, avoid this by removing the "special" handling for the remaining length and allow the standard (non-chunk) code to process the remaining bytes, which does not result in overrun. Reported by Pascal Cuoq <cuoq at trust-in-soft.com> - thanks! ok beck@ miod@ | |||
2015-10-20 | Lob a style(9) grenade in here. | Joel Sing | |
2015-10-19 | free rbio before wbio | Bob Beck | |
ok jsing@ | |||
2015-10-19 | Stop supporing "legcay" time formats that OpenSSL supports. Rewrite the | Bob Beck | |
utctime and gentime wrappers accordingly. Along with some other cleanup. this also removes the need for timegm. ok bcook@ sthen@ jsing@ | |||
2015-10-16 | Remove pointless externs - the structs are declared in the same files a | Joel Sing | |
few lines above. | |||
2015-10-16 | Expand DECLARE_ASN1_ALLOC_FUNCTIONS and DECLARE_ASN1_FUNCTIONS_const | Joel Sing | |
macros. The only change in the generated assembly is due to line numbering. | |||
2015-10-16 | Remove pointless uses of DECLARE_ASN1_ENCODE_FUNCTIONS_const. | Joel Sing | |
DECLARE_ASN1_FUNCTIONS_const already includes this macro so using both means we end up with duplicate function prototypes and externs. | |||
2015-10-16 | Fix use of pointer value after BIO_free, and remove senseless NULL checks. | Bob Beck | |
ok bcook@ | |||
2015-10-16 | actually include the prerequisite dependency for BIO instead of doing nastyness | Bob Beck | |
2015-10-14 | better fix for overrun reported by Qualys Security. | Ted Unangst | |
buf is at all times kept nul terminated, so there is no need to enforce this again upon exit. (no need to move buf around after we exahust space.) ok beck miod | |||
2015-10-14 | Bail out early if we have no buf_len | Bob Beck | |
ok miod@ | |||
2015-10-14 | fix a memory leak reported by Qualys Security. | Ted Unangst | |
move the bndec variable in tighter since it's not used elsewhere in the loop, then always free it after use. ok bcook miod | |||
2015-10-14 | Ensure we don't write a 0 byte past end of the buffer in the error case. | Bob Beck | |
ok bcook@ deraadt@ | |||
2015-10-14 | Add EVP_AEAD_CTX_init(3) manpage to document the new(ish) AEAD API. | Reyk Floeter | |
The "authenticated encryption with additional data" API is used for ciphers like AES-GCM or ChaCha20-Poly1305. The manpage is a beginning and certainly needs more work, especially improvements in the EXAMPLES section. Based on agl's source code comments. Converted from pod to mandoc by schwarze@ OK schwarze@ jsing@ | |||
2015-10-13 | Put ASN1_dup() under #ifndef LIBRESSL_INTERNAL. | Joel Sing | |
2015-10-13 | Convert ECParameters_dup() from a macro that uses ASN1_dup_of() into an | Joel Sing | |
actual function. This removes the last ASN1_dup_of usage from the tree. Feedback from doug@ and miod@ | |||
2015-10-13 | Convert a number of the old ASN1_{d2i,i2d}_{bio,fp}_of() macros to | Joel Sing | |
ASN1_item_{d2i,i2d}_{bio,fp}() function calls. ok beck@ doug@ | |||
2015-10-13 | Group d2i/i2d function prototypes by type and add missing externs for the | Joel Sing | |
DSAPublicKey, DSAPrivateKey and DSAparams ASN1_ITEMs. | |||
2015-10-12 | unifdef EVP_CHECK_DES_KEY: Ben Kaduk noticed it has a syntax error; that | Philip Guenther | |
error was present in the original 2004 commit, so it hasn't been used in over 11 years, thus exceeding our deprecation requirements by over a decade. OpenSSL has chosen to *fix it*; we'll gladly watch it burn ok jsing@ | |||
2015-10-08 | Rip the guts out of another gibbering horror of a time comparison function, and | Bob Beck | |
mark it as #ifndef LIBRESSL_INTERNAL at least we don't use this. ok jsing@ | |||
2015-10-08 | revert previous accidental commit | Bob Beck | |
2015-10-08 | Spelling in comment | Bob Beck | |
2015-10-07 | include <sys/time.h> for gettimeofday(2) | Brent Cook | |
2015-10-06 | prefer limits.h over sys/limits.h | Brent Cook | |
ok deraadt@ | |||
2015-10-05 | Make sure dot is not set after tz - fixes incorrect handling, which allows | Joel Sing | |
20151005171301+1.09Z to be treated as a valid time. ok beck@ | |||
2015-10-04 | Apply some style(9), tweak a few things for readability and add some | Joel Sing | |
additional bounds checks. ok beck@ | |||
2015-10-03 | SSL_new(): fix ref counting and memory leak in error path. | Doug Hogan | |
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@ | |||
2015-10-02 | Flense the greasy black guts of unreadble string parsing code out of three areas | Bob Beck | |
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@ | |||
2015-10-02 | s/ssl3_client_kex/ssl3_send_client_kex/ for consistency with the caller. | Joel Sing | |
2015-09-30 | Place all of the ASN1 M_ macros under #ifndef LIBRESSL_INTERNAL. | Joel Sing | |
2015-09-30 | Expand M_i2d_ASN1_OCTET_STRING macros - no change in generated assembly, | Joel Sing | |
aside from line numbers. | |||
2015-09-30 | s/M_ASN1_ENUMERATED_free/ASN1_ENUMERATED_free/ | Joel Sing | |
2015-09-30 | Replace M_ASN1_ENUMERATED_(free|new) with ASN1_ENUMERATED_(free|new). | Joel Sing | |
2015-09-30 | Replace M_ASN1_OCTET_STRING_(free|new) with ASN1_OCTET_STRING_(free|new). | Joel Sing | |
2015-09-30 | Replace M_ASN1_UTCTIME_(new|free) with ASN1_UTCTIME_(new|free). | Joel Sing | |
2015-09-30 | Replace M_ASN1_IA5STRING_(new|free) with ASN1_IA5STRING_(new|free). Same | Joel Sing | |
with one s/M_ASN1_VISIBLESTRING_new/ASN1_VISIBLESTRING_new/. | |||
2015-09-30 | Replace M_ASN1_GENERALIZEDTIME_(new|free) with | Joel Sing | |
ASN1_GENERALIZEDTIME_(new|free). | |||
2015-09-30 | s/M_ASN1_TIME_free/ASN1_TIME_free/ | Joel Sing | |
2015-09-30 | Replace M_ASN1_INTEGER_(new|free) with ASN1_INTEGER_(new|free) - this is | Joel Sing | |
different from the macro expansion, but the result is the same. Also replace some ASN1_STRING_dup() with ASN1_INTEGER_dup(). ok beck@ doug@ | |||
2015-09-30 | Remove unnecessary type assignments - M_ASN1_INTEGER_new() already sets | Joel Sing | |
the type to V_ASN1_INTEGER. ok doug@ | |||
2015-09-30 | Remove support for NO_ASN1_TYPEDEFS. | Doug Hogan | |
This ifdef was introduced 15 years ago and was known to cause problems with STACK_OF() back then. ok jsing@, beck@, jca@ | |||
2015-09-29 | convert "last_time" to a time_t, to handle beyond Y2038 | Theo de Raadt | |
ok guenther miod | |||
2015-09-29 | Replace remaining M_ASN1_BIT_STRING_(new|free) macros with calls to | Joel Sing | |
ASN1_BIT_STRING_(new|free). ok beck@ doug@ | |||
2015-09-28 | remove excessive brackets on pointer math | Theo de Raadt | |
2015-09-27 | Redo 1.25, without the NULL deref. | Miod Vallat | |
ok sthen@ bcook@ | |||
2015-09-27 | bump to 2.3.1 | Brent Cook | |
2015-09-26 | Use ASN1_item_dup() instead of ASN1_dup(). | Joel Sing | |
ok bcook@ | |||
2015-09-26 | We don't need no stinking "EXAMPLE OF THE DSA" or README (the credits are | Joel Sing | |
already in the code). ok beck@ miod@ |