Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update regress to match changes to tls1_PRF(). | jsing | 2017-03-25 | 1 | -10/+10 | |
| | ||||||
* | More cleanup for tls1_PRF()/tls1_P_hash() - change the argument order of | jsing | 2017-03-25 | 1 | -46/+50 | |
| | | | | | | | tls1_PRF() so that it matches tls1_P_hash(), use more explicit argument names and change lengths to size_t. ok inoguchi@ | |||||
* | add a helper function to print all pools #ifdef MALLOC_STATS | otto | 2017-03-24 | 1 | -1/+16 | |
| | | | | from David CARLIER | |||||
* | document new recallocarray diagnostic; zap a few diagnostics that should | otto | 2017-03-24 | 1 | -8/+9 | |
| | | | | never occur | |||||
* | move recallocarray to malloc.c and | otto | 2017-03-24 | 2 | -19/+207 | |
| | | | | | | | - use internal meta-data to do more consistency checking (especially with option C) - use cheap free if possible ok deraadt@ | |||||
* | Fewer magic numbers. | jsing | 2017-03-18 | 1 | -3/+3 | |
| | ||||||
* | t1_enc.c | jsing | 2017-03-18 | 1 | -3/+2 | |
| | ||||||
* | Update regress and remove temporary buffer to match changes in tls_PRF(). | jsing | 2017-03-18 | 1 | -8/+4 | |
| | ||||||
* | Currently tls1_PRF() requires that a temporary buffer be provided, that | jsing | 2017-03-18 | 1 | -50/+32 | |
| | | | | | | | | | | | | | | matches the size of the output buffer. This is used in the case where there are multiple hashes - tls_P_hash() is called with the temporary buffer and the result is then xored into the output buffer. Avoid this by simply using a local buffer in tls_P_hash() and then xoring the result into the output buffer. Overall this makes the code cleaner and simplifies all of the tls_PRF() callers. Similar to BoringSSL. ok inoguchi@ | |||||
* | remove unneccessary macro; | jmc | 2017-03-17 | 1 | -2/+2 | |
| | ||||||
* | Strengthen description of recallocarray(3) behaviour, hoping that readers | deraadt | 2017-03-17 | 1 | -5/+10 | |
| | | | | | make the behaviour -> use case connection. help from jmc and jsing | |||||
* | Convert BUF_MEM_grow() and BUF_MEM_grow_clean() to recallocarray(), | jsing | 2017-03-16 | 1 | -13/+3 | |
| | | | | | | | | | | ensuring that the buffer contents are zeroed on allocation and not leaked when resizing. It is worth noting that BUF_MEM_grow_clean() already did this manually by avoiding realloc(). ok beck@ inoguchi@ | |||||
* | Use calloc() instead of malloc() followed by manually zeroing fields. | jsing | 2017-03-16 | 1 | -6/+3 | |
| | | | | ok beck@ inoguchi@ | |||||
* | copy /etc/services in test directory | eric | 2017-03-14 | 1 | -1/+2 | |
| | ||||||
* | refresh the test infrastructure a bit. | eric | 2017-03-10 | 3 | -90/+93 | |
| | ||||||
* | Remove the handshake digests and related code, replacing remaining uses | jsing | 2017-03-10 | 7 | -166/+45 | |
| | | | | | | | with the handshake hash. For now tls1_digest_cached_records() is retained to release the handshake buffer. ok beck@ inoguchi@ | |||||
* | Switch CBB to use recallocarray() - this ensures that we do not leak | jsing | 2017-03-10 | 1 | -2/+2 | |
| | | | | | | secrets via realloc(). ok inoguchi@ | |||||
* | First pass at cleaning up the tls1_P_hash() function - remove a pointless | jsing | 2017-03-10 | 1 | -20/+19 | |
| | | | | | | | EVP_DigestSignInit() call and avoid the need for ctx_tmp by reordering the code slightly. ok inoguchi@ | |||||
* | Add a unit test for tls1_PRF(). | jsing | 2017-03-10 | 2 | -1/+257 | |
| | ||||||
* | Make tls1_PRF() non-static so it can be regress tested. | jsing | 2017-03-10 | 1 | -2/+7 | |
| | ||||||
* | The netcat server did not print the correct TLS error message if | bluhm | 2017-03-09 | 1 | -2/+2 | |
| | | | | | | the handshake after accept had failed. Use the context of the accepted TLS connection. OK beck@ | |||||
* | remove bogus variable expansion | eric | 2017-03-09 | 2 | -4/+4 | |
| | ||||||
* | missing include | eric | 2017-03-09 | 1 | -1/+2 | |
| | ||||||
* | Correctly handle TLS PRF with MD5+SHA1 - the secret has to be partitioned | jsing | 2017-03-07 | 1 | -5/+26 | |
| | | | | | | and each hash processed separately. Tested by tb@ | |||||
* | Add a test that covers a libtls client talking to a Go TLS server with | jsing | 2017-03-07 | 1 | -5/+107 | |
| | | | | | varying minimum and maximum protocol versions. This gives us protocol version test coverage against an independent TLS stack. | |||||
* | Allow ciphers to be set on the TLS config. | jsing | 2017-03-07 | 1 | -0/+10 | |
| | ||||||
* | Provide support for libtls protocols and allow for protocols to be set on | jsing | 2017-03-07 | 1 | -3/+47 | |
| | | | | | a TLS config. The ConnVersion function now also returns a protocol version instead of a string. | |||||
* | Add handling for errors on the TLS config and properly check/handle | jsing | 2017-03-07 | 2 | -6/+23 | |
| | | | | failures when setting the CA file. | |||||
* | libtls errors are much more descriptive these days - return them directly | jsing | 2017-03-07 | 1 | -9/+8 | |
| | | | | and avoid adding redundant/duplicate information. | |||||
* | We no longer need to keep pointers following tls_config_set_*() calls. | jsing | 2017-03-07 | 1 | -6/+3 | |
| | ||||||
* | Some tweaks from jmc@ and describe better what recallocarray does; | otto | 2017-03-07 | 1 | -7/+16 | |
| | | | | help and ok from tom@ and deraadt@ | |||||
* | Use an unsigned loop variable to avoid a comparison between signed | bluhm | 2017-03-06 | 1 | -1/+1 | |
| | | | | | and unsigned. Makes the test compile again. OK inoguchi@ | |||||
* | Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3) | otto | 2017-03-06 | 3 | -7/+147 | |
| | | | | | with the added feature that released memory is cleared. Much input from various developers. ok deraadt@ tom@ | |||||
* | size is unsigned so using ==0 not <=0 when checking for buffer exhaustion | millert | 2017-03-06 | 1 | -4/+4 | |
| | ||||||
* | Pull in a change from the bind 8 resolver that fixes a potential | millert | 2017-03-06 | 1 | -10/+16 | |
| | | | | | crash when given a large hex number as part of the dotted quad. OK deraadt@ jsg@ | |||||
* | Clean up and simplify the tls1_PRF() implementation now that we have a | jsing | 2017-03-06 | 1 | -48/+19 | |
| | | | | | | single EVP MD for the PRF hash. ok beck@ inoguchi@ | |||||
* | Correctly convert an SSLv2 challenge into an SSLv3/TLS client random by | jsing | 2017-03-05 | 1 | -9/+27 | |
| | | | | | | truncating or left zero padding. ok beck@ inoguchi@ sthen@ | |||||
* | Provide a rolling handshake hash that commences as soon as the cipher | jsing | 2017-03-05 | 8 | -54/+193 | |
| | | | | | | | | | | suite has been selected, and convert the final finish MAC to use this handshake hash. This is a first step towards cleaning up the current handshake buffer/digest code. ok beck@ inoguchi@ | |||||
* | Convert various handshake message generation functions to CBB. | jsing | 2017-03-05 | 4 | -56/+113 | |
| | | | | ok beck@ inoguchi@ | |||||
* | Add an initial regress test that covers the server-side of libssl, by | jsing | 2017-03-05 | 3 | -1/+220 | |
| | | | | providing SSL_accept() with fixed ClientHello messages. | |||||
* | Drop the second argument of dtls1_set_message_header() and make it a void | jsing | 2017-03-04 | 3 | -13/+10 | |
| | | | | | function. Nothing makes use of the return value and the second argument was only used to produce the return value... | |||||
* | Call ssl3_handshake_write() instead of ssl3_do_write() - this was missed | jsing | 2017-03-04 | 1 | -2/+2 | |
| | | | | | | | | | | | when ssl3_send_client_certificate() was converted to the standard handshake functions in r1.150 of s3_clnt.c. This has no impact on TLS, however it causes the DTLS client to fail if the server sends a certificate request, since the TLS MAC is calculated on a non-populated DTLS header. Issue reported by umokk on github. | |||||
* | Treat "ERROR in STARTUP" as an actual error, rather than failing without | jsing | 2017-03-04 | 1 | -2/+2 | |
| | | | | | | | exiting non-zero (which has been masking a DTLS related issue). Also make the message consistent with other errors. Spotted by inogochi@ | |||||
* | Remove commented out code and fix indentation of surrounding statements. | jsing | 2017-03-04 | 1 | -12/+5 | |
| | ||||||
* | Remove handling for SSLv2. | jsing | 2017-03-04 | 1 | -14/+3 | |
| | ||||||
* | Ensure MD and key initialized before processing HMAC | inoguchi | 2017-03-03 | 2 | -35/+224 | |
| | | | | | | | | Ensure both MD and key have been initialized before processing HMAC. Releasing HMAC_CTX in error path of HMAC(). In regress test, added test 4,5,6 and cleaned up the code. ok jsing@ | |||||
* | fix error in Dt; from robert klein | jmc | 2017-03-02 | 1 | -3/+3 | |
| | ||||||
* | Convert ssl3_{get,send}_server_key_exchange() to EVP_md5_sha1(). | jsing | 2017-03-01 | 3 | -44/+29 | |
| | | | | ok inoguchi@ | |||||
* | Add EVP test for MD5-SHA1. | jsing | 2017-03-01 | 1 | -0/+3 | |
| | ||||||
* | Include EVP_md5_sha1() via OpenSSL_add_all_digests(). | jsing | 2017-03-01 | 1 | -1/+2 | |
| |