Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove 1997's compat hack SSL_OP_SSLEAY_080_CLIENT_DH_BUG. | doug | 2015-06-15 | 4 | -22/+16 |
| | | | | This is a hack for an old version of SSLeay which predates OpenSSL. | ||||
* | Update SSL_OP_* to remove ancient hacks that are no longer enabled. | doug | 2015-06-15 | 2 | -26/+22 |
| | |||||
* | Split up the logic in CBB_flush to separately handle the lengths. | doug | 2015-06-13 | 2 | -42/+64 |
| | | | | | | Also, add comments about assuming short-form. ok miod@, tweak + ok jsing@ | ||||
* | Explain the ASN.1 restriction that requires extra logic for encoding. | doug | 2015-06-13 | 2 | -4/+36 |
| | | | | ok miod@ jsing@ | ||||
* | When initial capacity is 0, always use NULL buffer. | doug | 2015-06-13 | 2 | -14/+16 |
| | | | | | | | malloc(0) is implementation defined and there's no reason to introduce that ambiguity here. Added a few cosmetic changes in sizeof and free. ok miod@ jsing@ | ||||
* | Add comments about how the CBS constants are constructed. | doug | 2015-06-13 | 2 | -24/+86 |
| | | | | | | Also, introduce a few more #defines to make it obvious. ok miod@ jsing@ | ||||
* | Reject long-form tags in CBS_peek_asn1_tag. | doug | 2015-06-13 | 2 | -2/+16 |
| | | | | | | Currently, CBS only handles short-form tags. ok miod@ jsing@ | ||||
* | Fix bad indenting in LibreSSL. | doug | 2015-06-13 | 10 | -24/+24 |
| | | | | | | | | | jsg@ noticed that some of the lines in libssl and libcrypto are not indented properly. At a quick glance, it looks like it has a different control flow than it really does. I checked the history in our tree and in OpenSSL to make sure these were simple mistakes. ok miod@ jsing@ | ||||
* | Remove unneeded sys/sysctl.h on linux. | bcook | 2015-06-13 | 2 | -4/+2 |
| | | | | This only provides the sysctl wrapper in glibc, which we do not use and is not available in other libc implementations for Linux. Thanks to ncopa from github. | ||||
* | Avoid an infinite loop that can occur when verifying a message with anlibressl-v2.2.0 | jsing | 2015-06-11 | 2 | -4/+4 |
| | | | | | | | | | | unknown hash function OID. Diff based on OpenSSL. Fixes CVE-2015-1792 (however, this code is not enabled/built in LibreSSL). ok doug@ miod@ | ||||
* | Avoid a potential out-of-bounds read in X509_cmp_time(), due to missing | jsing | 2015-06-11 | 2 | -8/+54 |
| | | | | | | | | | | length checks. Diff based on changes in OpenSSL. Fixes CVE-2015-1789. ok doug@ | ||||
* | Avoid an infinite loop that can be triggered by parsing an ASN.1 | jsing | 2015-06-11 | 2 | -6/+16 |
| | | | | | | | | | | | ECParameters structure that has a specially malformed binary polynomial field. Issue reported by Joseph Barr-Pixton and fix based on OpenSSL. Fixes CVE-2015-1788. ok doug@ miod@ | ||||
* | Link ssl and crypto via BSDOBJDIR, works with native and cross builds | tobiasu | 2015-06-05 | 1 | -3/+3 |
| | | | | ok mpi@ | ||||
* | Fix library search path so we link against the freshly built libcrypto.so | tobiasu | 2015-06-05 | 1 | -2/+2 |
| | | | | | | instead of a stale one. ok miod@ mpi@ | ||||
* | force reseeding if pid has changed. | eric | 2015-06-04 | 1 | -2/+7 |
| | | | | ok deraadt@ | ||||
* | Need to operate of CXXFLAGS now. | miod | 2015-05-29 | 1 | -3/+3 |
| | |||||
* | Use a relative path against BSDOBJDIR to pick libcrypto; makes cross-lib | miod | 2015-05-26 | 1 | -2/+2 |
| | | | | work again. | ||||
* | Add OPENSSL_NO_EGD to opensslfeatures.h. | bcook | 2015-05-26 | 2 | -0/+2 |
| | | | | | | | Since RAND_egd has been removed from LibreSSL, simplify porting software that relies on it. See https://github.com/libressl-portable/openbsd/pull/34 from Bernard Spil, ok deraadt@ | ||||
* | Make SSL_CIPHER_get_bits() report ChaCha20-Poly1305 ciphers as using | guenther | 2015-05-25 | 2 | -8/+8 |
| | | | | | | | 256bit keys problem noted by Tim Kuijsten (info (at) netsend.nl) ok deraadt@ miod@ bcook@ | ||||
* | Maximilian dot Fillinger at uni-duesseldorf dot de | schwarze | 2015-05-24 | 3 | -74/+109 |
| | | | | | | starts helping with the pod2mdoc(1)-based conversion of LibreSSL crypto manuals from perlpod(1) to mdoc(7). Here comes the first file, slightly tweaked by me. | ||||
* | bump to version 2.2 | bcook | 2015-05-23 | 2 | -4/+4 |
| | | | | ok deraadt@ | ||||
* | No need to check the return value of memcpy() if you actually checked this | miod | 2015-05-20 | 2 | -6/+4 |
| | | | | pointer for NULL the line above; ok doug@ | ||||
* | Record inter-library dependencies between libcrypto, libssl and libtls | kettenis | 2015-05-17 | 6 | -2/+11 |
| | |||||
* | Make index/rindex weak aliases of strchr/strrchr since they are not | millert | 2015-05-15 | 4 | -90/+6 |
| | | | | | part of the ISO C standard and have also been dropped from POSIX. OK guenther@ kettenis@ | ||||
* | Fix return paths with missing EVP_CIPHER_CTX_cleanup() calls. | jsg | 2015-05-15 | 10 | -30/+32 |
| | | | | ok doug@ | ||||
* | rev 1.3 introduced a check to an if statement without adding braces. | jsg | 2015-05-14 | 1 | -3/+1 |
| | | | | | | | Claudio points out the size is checked by an earlier test so just remove it to restore the original handling of the partial octet case. Discussed with claudio and gilles. | ||||
* | If crypt(3) is called with an unknown setting, return NULL instead | bluhm | 2015-05-13 | 1 | -1/+3 |
| | | | | | of some undefined value. OK tedu@ | ||||
* | Add dlclose(3) to SEE ALSO | guenther | 2015-05-12 | 1 | -2/+3 |
| | | | | ok millert@ jmc@ schwarze@ | ||||
* | When checking flags that will be passed to open(), test the O_ACCMODE portion | guenther | 2015-05-11 | 1 | -2/+3 |
| | | | | | | separately to avoid false negatives. ok miod@ millert@ | ||||
* | Make this run on strict alignment architectures. | miod | 2015-05-08 | 1 | -6/+9 |
| | |||||
* | Add SwissSign CA root certificates. Requested by robert@, ok dcoppa@ aja@ miod@ | sthen | 2015-05-04 | 1 | -0/+381 |
| | |||||
* | use strdup() to init string | deraadt | 2015-04-30 | 2 | -6/+4 |
| | | | | ok doug millert | ||||
* | Add whitespace and replace OPENSSL_free with free in documentation. | doug | 2015-04-29 | 6 | -22/+22 |
| | | | | ok jsing@ | ||||
* | Call CBB_add_space() rather than reimplementing it. | doug | 2015-04-29 | 2 | -4/+4 |
| | | | | ok jsing@ | ||||
* | Rename cbb_buffer_add_u to cbb_add_u and remove redundant code. | doug | 2015-04-29 | 2 | -30/+12 |
| | | | | | | | All of cbb_buffer_add_u's callers first call CBB_flush and send cbb->base. cbb_add_u() now has that common code in one place. ok jsing@ | ||||
* | Added len_len error checking for internal cbb_buffer_add_u(). | doug | 2015-04-29 | 2 | -2/+8 |
| | | | | ok jsing@ | ||||
* | Call CBS_mem_equal() rather than reimplementing it. | doug | 2015-04-29 | 2 | -6/+4 |
| | | | | ok jsing@ | ||||
* | Avoid NULL deref in CBS_get_any_asn1_element(). | doug | 2015-04-29 | 2 | -4/+6 |
| | | | | | | This function is documented as allowing NULL for out_header_len. ok jsing@ | ||||
* | Added error checking for len argument in cbs_get_u(). | doug | 2015-04-29 | 2 | -2/+8 |
| | | | | tweak + ok jsing@ | ||||
* | free() can handle NULL. | doug | 2015-04-29 | 2 | -16/+8 |
| | | | | ok jsing@ | ||||
* | Reject dNSName of " " for subjectAltName extension. | doug | 2015-04-29 | 1 | -1/+20 |
| | | | | | | RFC 5280 says " " must not be used as a dNSName. ok jsing@ jca@ | ||||
* | Add missing BN_CTX_end() calls. | doug | 2015-04-29 | 8 | -36/+36 |
| | | | | | | | | After calling BN_CTX_start(), there must be a BN_CTX_end() before returning. There were missing BN_CTX_end() calls in error paths. One diff chunk was simply removing redundant code related to this. ok deraadt@ | ||||
* | Not all Linux libc's include linux/sysctl.h in sys/sysctl.h. | bcook | 2015-04-27 | 2 | -4/+6 |
| | | | | Include it if we have the sysctl syscall. | ||||
* | Support AIX versions without WPAR support. | bcook | 2015-04-27 | 2 | -2/+10 |
| | | | | From Michael Felt. | ||||
* | Don't ignore the reference count in X509_STORE_free. | doug | 2015-04-25 | 2 | -2/+10 |
| | | | | | | | | | Based on this upstream commit: bff9ce4db38b297c72a6d84617d71ae2934450f7 which didn't make it into a release until 1.0.2. Thanks to william at 25thandclement dot com for reporting this! ok deraadt@ jsing@ beck@ | ||||
* | Check for invalid leading zeros in CBS_get_asn1_uint64. | doug | 2015-04-25 | 3 | -8/+20 |
| | | | | | | | | | | ASN.1 integers cannot have all zeros or all ones for the first 9 bits. This rule ensures the numbers are encoded with the smallest number of content octets (see ITU-T Rec X.690 section 8.3.2). Based on BoringSSL commit 5933723b7b592e9914f703d630b596e140c93e16 ok deraadt@ jsing@ | ||||
* | Do not need to buf[0] = 0 before strlcpy(buf, ... | deraadt | 2015-04-23 | 2 | -4/+2 |
| | |||||
* | Only set the cipher list if one was specified and actually check the return | jsing | 2015-04-15 | 1 | -7/+12 |
| | | | | | | | value from SSL_CTX_set_cipher_list(). Also remove pointless getenv() handling. ok bcook@ doug@ | ||||
* | Clean up the ssl_bytes_to_cipher_list() API - rather than having the | jsing | 2015-04-15 | 6 | -42/+30 |
| | | | | | | | | | | ability to pass or not pass a STACK_OF(SSL_CIPHER) *, which is then either zeroed or if NULL a new one is allocated, always allocate one and return it directly. Inspired by simliar changes in BoringSSL. ok beck@ doug@ | ||||
* | Now that tls_close() is more robust, consider a failure to be fatal. | jsing | 2015-04-15 | 1 | -1/+1 |
| |