Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | consictently use .Dv NULL and a few other tweaks; ok schwarze@ | otto | 2017-04-17 | 1 | -20/+17 |
| | |||||
* | whitespace fixes | otto | 2017-04-17 | 1 | -14/+14 |
| | |||||
* | Use INT_MAX instead of SIZE_MAX as the maximum file size we can handle. | kettenis | 2017-04-16 | 1 | -2/+2 |
| | | | | | | Fixes this test on 64-bit architectures. ok visa@ | ||||
* | Define DEF_WEAK like we do for ld.so to fix building this with clang. | kettenis | 2017-04-16 | 1 | -1/+2 |
| | | | | ok millert@, deraadt@ | ||||
* | Move comments into a block and uses {} to unconfuse reading. | deraadt | 2017-04-16 | 1 | -12/+13 |
| | |||||
* | Use %zu to print a size_t. | kettenis | 2017-04-16 | 1 | -2/+2 |
| | |||||
* | Remove unused rnd_seed variable. Upstream made the same change 4 days ago. | kettenis | 2017-04-16 | 1 | -3/+0 |
| | | | | Fixes compiling this test using clang on arm64. | ||||
* | backout previous, data_len is not always initialized | otto | 2017-04-16 | 1 | -2/+5 |
| | |||||
* | Use freezero(3) when cleaning up session tickets - not only does it require | jsing | 2017-04-14 | 1 | -6/+3 |
| | | | | | less code, but there is also a potential performance gain since they can be larger allocations. | ||||
* | Use freezero(3) to clean up the X25519 keys - simpler, cleaner code. | jsing | 2017-04-14 | 1 | -6/+3 |
| | |||||
* | Use freezero(3) in the CBB clean up path, since this could hold sensitive | jsing | 2017-04-14 | 1 | -3/+2 |
| | | | | information (such as master keys). | ||||
* | Switch i2d_SSL_SESSION() back to freezero(3) now that the size constraints | jsing | 2017-04-14 | 1 | -5/+2 |
| | | | | have been relaxed. | ||||
* | Clean up server key exchange EC point handling. Encode the point directly | jsing | 2017-04-14 | 1 | -27/+15 |
| | | | | | | | | into the CBB memory, rather than mallocing and memcpying, which also makes makes the code more consistent with the client. Add a missing check for the first EC_POINT_point2oct() call. ok beck@ | ||||
* | allow clearing less than allocated and document freezero(3) better | otto | 2017-04-13 | 2 | -13/+26 |
| | |||||
* | New strstr() implementation from musl libc by Rich Felker. This | millert | 2017-04-12 | 1 | -44/+180 |
| | | | | | | | | version uses the two-way string matching algorithm and is faster than the old implementation. With this change, ports that check for strstr having linear complexity time strstr will no longer replace the libc strstr with a private version. OK deraadt@ espie@ | ||||
* | Revert ssl_asn1.c r1.50 - CBB and freezero(3) do not play nicely together. | jsing | 2017-04-11 | 1 | -2/+5 |
| | | | | | | Back this out while we investigate and implement a solution. Found the hard way by sthen@ | ||||
* | new X25519(3) manual page; | schwarze | 2017-04-10 | 5 | -10/+113 |
| | | | | from Dr. Stephen Henson <steve@openssl.org>, OpenSSL commit d218f3c3 | ||||
* | Use freezero() for the internal opaque structures, instead of the current | jsing | 2017-04-10 | 3 | -18/+9 |
| | | | | explicit_bzero()/free(). Less code and potentially less overhead. | ||||
* | Use freezero() for X25519 keys - same result with more readable code. | jsing | 2017-04-10 | 1 | -7/+3 |
| | |||||
* | document three additional functions; | schwarze | 2017-04-10 | 1 | -7/+60 |
| | | | | from Emilia Kasper <emilia at openssl dot org>, OpenSSL commit 4ac139b4 | ||||
* | Rework and significantly extend TLS name verification tests to match | jsing | 2017-04-10 | 1 | -99/+377 |
| | | | | changes in libtls. | ||||
* | Rework name verification code so that a match is indicated via an argument, | jsing | 2017-04-10 | 5 | -47/+76 |
| | | | | | | | | | | rather than return codes. More strictly follow RFC 6125, in particular only check the CN if there are no SAN identifiers present in the certificate (per section 6.4.4). Previous behaviour questioned by Daniel Stenberg <daniel at haxx dot se>. ok beck@ jca@ | ||||
* | freezero() the key block; simpler code and less of it. | jsing | 2017-04-10 | 1 | -7/+3 |
| | |||||
* | Use freezero() for i2d_SSL_SESSION() - one line of code instead of three. | jsing | 2017-04-10 | 1 | -5/+2 |
| | | | | | | In this case the memory allocated can also be significant, in which case freezero() will have less overhead than explicit_bzero() (munmap instead of touching all of the memory to write zeros). | ||||
* | fix some .Xr errors that jmc@ found with mdoclint(1) | schwarze | 2017-04-10 | 3 | -12/+13 |
| | |||||
* | new manual page SSL_get_server_tmp_key(3) | schwarze | 2017-04-10 | 3 | -2/+88 |
| | | | | from Matt Caswell <matt@openssl.org>, OpenSSL commit 508fafd8 | ||||
* | Additional SSL_SESSION documentation | schwarze | 2017-04-10 | 11 | -16/+349 |
| | | | | | from Matt Caswell <matt at openssl dot org>, OpenSSL commit b31db505. Improve crosslinking while here. | ||||
* | for pure *_ctrl() wrapper macros, move the reference from ssl(3) | schwarze | 2017-04-10 | 14 | -49/+54 |
| | | | | to SSL_CTX_ctrl(3) to make ssl(3) slightly more palatable | ||||
* | new manual page SSL_CTX_set_tlsext_servername_callback(3) for SNI; | schwarze | 2017-04-10 | 2 | -1/+126 |
| | | | | | from <Jon dot Spillett at oracle dot com> via OpenSSL commit 8c55c461 | ||||
* | tweak previous; | jmc | 2017-04-10 | 1 | -4/+4 |
| | |||||
* | Convert various client key exchange functions to freezero(3). The memory | jsing | 2017-04-10 | 1 | -14/+5 |
| | | | | | contents needs to be made inaccessible - this is simpler and less error prone than the current "if not NULL, explicit_bzero(); free()" dance. | ||||
* | Introducing freezero(3) a version of free that guarantees the process | otto | 2017-04-10 | 2 | -36/+130 |
| | | | | | | no longer has access to the content of a memmory object. It does this by either clearing (if the object memory remains cached) or by calling munmap(2). ok millert@, deraadt@, guenther@ | ||||
* | pasto; from <Jon dot Spillett at oracle dot com> via OpenSSL commit 3aaa1bd0 | schwarze | 2017-04-10 | 1 | -3/+3 |
| | |||||
* | typo fix; from <Jon dot Spillett at oracle dot com> | schwarze | 2017-04-10 | 1 | -5/+5 |
| | | | | via OpenSSL commit 7bd27895 | ||||
* | Simplify/clean up BUF_MEM_grow_clean(). | jsing | 2017-04-09 | 1 | -17/+16 |
| | | | | ok beck@ | ||||
* | With recallocarray() BUF_MEM_grow() is essentially the same as | jsing | 2017-04-09 | 1 | -28/+2 |
| | | | | | | | BUF_MEM_grow_clean() (the only difference is clearing on internal down sizing), so make it a wrapper. ok beck@ deraadt@ | ||||
* | Explicitly test for NULL. | jsing | 2017-04-09 | 1 | -4/+4 |
| | | | | ok beck@ | ||||
* | Improve unknown protocol version handling. | jsing | 2017-04-09 | 1 | -2/+3 |
| | |||||
* | In ssl.h TLS 1.0 is called TLSv1. Adapt name in test to make it pass. | bluhm | 2017-04-07 | 1 | -1/+1 |
| | | | | OK jsing@ | ||||
* | Use uint8_t instead of u_int8_t - for consistency and to make things easier | jsing | 2017-04-07 | 1 | -2/+2 |
| | | | | | | for portable. From Raphael Hittich. | ||||
* | trailing ; on end of macro definition is wrong; ok guenther | deraadt | 2017-04-06 | 1 | -4/+4 |
| | |||||
* | Consistentcy between nmembers and size order. From Christopher Hettrick; | otto | 2017-04-06 | 1 | -8/+8 |
| | | | | ok deraadt@ | ||||
* | bump version for new development branch | bcook | 2017-04-06 | 1 | -3/+3 |
| | |||||
* | first print size in meta-data then supplied arg size when an inconsistency is | otto | 2017-04-06 | 1 | -3/+3 |
| | | | | detected wrt recallocarray() | ||||
* | - -Z before -z in options list | jmc | 2017-04-05 | 2 | -7/+9 |
| | | | | - add -Z to help and usage() | ||||
* | Allow nc to save the peer certificate and chain in a pem file specified | beck | 2017-04-05 | 2 | -4/+39 |
| | | | | | with -Z ok jsing@ | ||||
* | Add tls_peer_cert_chain_pem - To retreive the peer certificate and chain | beck | 2017-04-05 | 7 | -6/+77 |
| | | | | | | | as PEM format. This allows for it to be used or examined with tools external to libtls bump minor ok jsing@ | ||||
* | Internal changes to allow for relayd engine privsep. sends the hash of the | beck | 2017-04-05 | 5 | -29/+87 |
| | | | | | | public key as an identifier to RSA, and adds an function for relayd to use to disable private key checking when doing engine privsep. ok jsing@ | ||||
* | Fix silly code that printfs NULL when there are no fractional seconds | beck | 2017-04-03 | 1 | -2/+2 |
| | | | | | | on a GENREALIZEDTIME (which there should really never be for anything remotely standards compliant) ok jsing@ | ||||
* | rephrase more enumerations of functions | otto | 2017-03-29 | 1 | -13/+10 |
| |