Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rewrite ASN1_TYPE_{get,set}_octetstring() using templated ASN.1. | jsing | 2017-11-28 | 1 | -81/+78 | |
| | | | | | | | This removes the last remaining use of the old M_ASN1_* macros (asn1_mac.h) from API that needs to continue to exist. ok beck@ inoguchi@ | |||||
* | Add regress coverage for ASN1_TYPE_{get,set}_int_octetstring() | jsing | 2017-11-28 | 2 | -2/+147 | |
| | ||||||
* | Correct TLS extensions handling when no extensions are present. | jsing | 2017-11-28 | 1 | -1/+13 | |
| | | | | | | | | If no TLS extensions are present in a client hello or server hello, omit the entire extensions block, rather than including it with a length of zero. ok beck@ inoguchi@ | |||||
* | Add regress test coverage for building clienthello and serverhello | jsing | 2017-11-28 | 1 | -4/+201 | |
| | | | | | extensions, both with extensions being present and not present. The not present case currently fails. | |||||
* | Add regress for CBB_discard_child(). | jsing | 2017-11-28 | 1 | -2/+56 | |
| | | | | Converted from BoringSSL. | |||||
* | Add CBB_discard_child(), which allows for a child CBB to be discarded. | jsing | 2017-11-28 | 2 | -2/+22 | |
| | | | | Based on BoringSSL. | |||||
* | GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections | tb | 2017-11-28 | 8 | -19/+19 | |
| | | | | | | | | with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt | |||||
* | Use clock_gettime and getrusage to compute real and user time. | jca | 2017-11-24 | 1 | -16/+33 | |
| | | | | Better handling of clock jumps, from Scott Cheloa. | |||||
* | Revert recent changes to unbreak ports/net/samba | jca | 2017-11-04 | 1 | -2/+8 | |
| | | | | | | | | While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@ | |||||
* | 's' should include 'f'; from Jacqueline Jolicoeur | otto | 2017-11-02 | 1 | -2/+2 | |
| | ||||||
* | openssl s_time -connect host:port needs dns promise for pledge(2) otherwise it | mestre | 2017-11-02 | 1 | -2/+2 | |
| | | | | | | | | will SIGABRT Bug found by Scott Cheloha <scottcheloha at gmail.com> OK deraadt@ | |||||
* | Change pthread_cleanup_{push,pop} to macros that store the cleanup info | guenther | 2017-10-28 | 1 | -8/+2 | |
| | | | | | | | | | | | | | | on the stack instead of mallocing the list and move the APIs from libpthread to libc so that they can be used inside libc. Note: the standard was explicitly written to permit/support this "macro with unmatched brace" style and it's what basically everyone else already does. We xor the info with random cookies with a random magic to detect/trip-up overwrites. Major bump to both libc and libpthread due to the API move. ok mpi@ | |||||
* | Use a smaller buffer size too peek the receive data. The content | bluhm | 2017-10-24 | 1 | -5/+4 | |
| | | | | | | is discarded anyway, the plen variable is a leftover from the -j jumbo option. reported by Nan Xiao; OK deraadt@ | |||||
* | Restore a return that was inadvertently removed from freezero() in r1.234, | jsing | 2017-10-19 | 1 | -1/+2 | |
| | | | | | | | which results in an internal double free when internal functions are not in use. ok otto@ | |||||
* | add missing HISTORY; based on CVS logs and release announcements | schwarze | 2017-10-17 | 1 | -2/+7 | |
| | ||||||
* | Add a regression test for ldexp(3). | visa | 2017-10-15 | 3 | -2/+82 | |
| | ||||||
* | Rename ssl3_client_hello() to ssl3_send_client_hello() for consistency. | jsing | 2017-10-12 | 2 | -5/+5 | |
| | ||||||
* | Fold dtls1_accept() into ssl_accept(), removing a lot of duplicated code. | jsing | 2017-10-12 | 4 | -556/+143 | |
| | | | | With review/feedback from inoguchi@ | |||||
* | Drop prototypes for ssl23_*() functions, which no longer exist. | jsing | 2017-10-12 | 1 | -11/+1 | |
| | ||||||
* | Add STANDARDS: denis@ spotted that it was missing. | schwarze | 2017-10-12 | 1 | -2/+19 | |
| | | | | OK deraadt@ jca@ jmc@ | |||||
* | Update regress now that ssl_cipher_list_to_bytes() takes a CBB. | jsing | 2017-10-11 | 1 | -3/+9 | |
| | | | | Based on a diff from doug@ | |||||
* | Convert ssl3_client_hello() to CBB. | jsing | 2017-10-11 | 4 | -93/+64 | |
| | | | | | | | As part of this, change ssl_cipher_list_to_bytes() to take a CBB argument, rather than a pointer/length. Some additional clean up/renames while here. Based on a diff from doug@ | |||||
* | Fully convert ssl3_send_server_hello() to CBB. | jsing | 2017-10-11 | 3 | -53/+19 | |
| | | | | Based on a diff from doug@ | |||||
* | Revise regress now that ssl_bytes_to_cipher_list() takes a CBS. | jsing | 2017-10-10 | 1 | -20/+10 | |
| | ||||||
* | Make ssl_bytes_to_cipher_list() take a CBS, rather than a pointer and | jsing | 2017-10-10 | 3 | -29/+19 | |
| | | | | | length, since the caller has already been converted to CBS. A small amount of additional clean up whilst here. | |||||
* | ((remove) (some) (unnecessary) (parentheses)) | jsing | 2017-10-10 | 1 | -4/+4 | |
| | | | | Part of a diff from doug@ | |||||
* | Merge dtls1_connect() into ssl3_connect(), removing a large amount of | jsing | 2017-10-10 | 4 | -459/+117 | |
| | | | | | | | | duplicated code. For now this is essentially adds a diff of the two functions with 'if (SSL_IS_DTLS(s))' - further clean up and improvement will follow. ok inoguchi@ | |||||
* | Reduce non-functional differences between dtls1_accept() and | jsing | 2017-10-08 | 1 | -34/+42 | |
| | | | | ssl3_accept() - synchronise comments, whitespace, line wrapping, etc. | |||||
* | Reduce non-functional differences between dtls1_connect() and | jsing | 2017-10-08 | 1 | -32/+38 | |
| | | | | ssl3_connect() - synchronise comments, whitespace, line wrapping, etc. | |||||
* | Fix some style/whitespace/indentation issues in ssl3_accept(). | jsing | 2017-10-08 | 1 | -25/+14 | |
| | ||||||
* | Fix some style/whitespace/indentation issues in ssl3_connect(). | jsing | 2017-10-08 | 1 | -10/+9 | |
| | ||||||
* | Convert ssl3_send_change_cipher_spec() to use CBB and make it handle DTLS, | jsing | 2017-10-08 | 6 | -57/+52 | |
| | | | | | | which allows us to drop dtls1_send_change_cipher_spec() entirely. ok inoguchi@ | |||||
* | hyphenate DER/PEM-encoded, for consistency; | jmc | 2017-10-08 | 2 | -9/+9 | |
| | ||||||
* | Document tls_peer_cert_chain_pem(). | jsing | 2017-10-07 | 1 | -2/+13 | |
| | | | | ok beck@ | |||||
* | Fix cast-pasto's in comments | guenther | 2017-10-07 | 1 | -3/+3 | |
| | ||||||
* | do not return f() where f is a void function; loop var type fix | otto | 2017-10-05 | 1 | -4/+5 | |
| | ||||||
* | Use dprintf instead of snprintf/write | otto | 2017-10-05 | 1 | -82/+36 | |
| | ||||||
* | bump version in advance of final release | bcook | 2017-09-26 | 1 | -3/+3 | |
| | ||||||
* | bump wo 2.6.2libressl-v2.6.2 | bcook | 2017-09-26 | 1 | -3/+3 | |
| | ||||||
* | If tls_config_parse_protocols() is called with a NULL pointer, return the | jsing | 2017-09-25 | 1 | -1/+4 | |
| | | | | | default protocols instead of crashing - this makes the behaviour more useful and mirrors what we already do in tls_config_set_ciphers() et al. | |||||
* | Annotate some API-side memory leaks for future resolution. | jsing | 2017-09-25 | 1 | -1/+3 | |
| | ||||||
* | Fix various issues in the OCSP extension parsing code: | jsing | 2017-09-25 | 1 | -20/+14 | |
| | | | | | | | | | | | | | | | | | | - When parsing the OCSP extension we can have multiple responder IDs - pull these out correctly. - Stop using CBS_stow() - it's unnecessary since we just need access to the data and length (which we can get via CBS_data() and CBS_len()). - Use a temporary pointer when calling d2i_*() functions, since it will increment the pointer by the number of bytes it consumed when decoding. The original code incorrectly passes the pointer allocated via CBS_stow() (using malloc()) to a d2i_*() function and then calls free() on the now incremented pointer, most likely resulting in a crash. This issue was reported by Robert Swiecki who found the issue using honggfuzz. ok beck@ | |||||
* | When building the OCSP extension, only add the length prefixed extensions | jsing | 2017-09-25 | 1 | -6/+6 | |
| | | | | | | | after we finish building the responder ID list. Otherwise adding to the responder ID list fails. ok beck@ | |||||
* | Make delayed free non-optional and make F do an extensive double free check. | otto | 2017-09-23 | 1 | -21/+26 | |
| | | | | ok tb@ tedu@ | |||||
* | Keep track of which keypair is in use by a TLS context. | jsing | 2017-09-20 | 4 | -14/+25 | |
| | | | | | | | | | | This fixes a bug where by a TLS server with SNI would always only return the OCSP staple for the default keypair, rather than returning the OCSP staple associated with the keypair that was selected via SNI. Issue reported by William Graeber and confirmed by Andreas Bartelt. Fix tested by William Graeber and Andreas Bartelt - thanks! | |||||
* | Slightly restructure tls_ocsp_verify_cb() to make it more like libtls code. | jsing | 2017-09-20 | 1 | -6/+7 | |
| | ||||||
* | Provide a useful error if there are no OCSP URLs in the peer certificate. | jsing | 2017-09-20 | 1 | -1/+4 | |
| | ||||||
* | Fix indentation. | jsing | 2017-09-20 | 1 | -1/+1 | |
| | ||||||
* | mapalign returns MAP_FAILED for failuer; from George Koehler | otto | 2017-09-12 | 1 | -2/+2 | |
| | ||||||
* | check double free before canary for chunks; ok millert@ | otto | 2017-09-11 | 1 | -5/+5 | |
| |