summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-13Clean up sequence number handing in the new TLSv1.2 record layer.jsing3-69/+89
Handle protocol specific (DTLS vs TLS) sequence number differences in the open/seal record functions and propagate the sequence number through to the called functions. This means that DTLS specific knowledge is limited to two functions and also avoids building sequence numbers multiple times over. As a result, the DTLS explicit sequence number is now extracted from the record header and passed through for processing, which makes the read epoch handling redundant. ok inoguchi@ tb@
2021-01-12A few minor tweaks to make my OCD happy.tb1-12/+9
Sort headers, unwrap a line, fix grammar in spelling and simplify the check for test failure.
2021-01-12Split the record protection from the TLSv1.2 record layer.jsing1-75/+101
When changing cipher state, DTLS requires that the previous write protection state remain available so that messages can be retransmitted. Currently, this is done by DTLS saving and restoring various pointers, along with special casing to not free the cipher and hash where it would normally be freed for TLS (and requiring DTLS to free things at the appropriate times). This can be handled in a much cleaner manner by splitting the record protection from the record layer. This allows for the previous write state to be retained and restored by swapping a single pointer. Additionally, it also results in more readable and manageable code. This diff simply splits the record protection from the record layer - future changes will add support for maintaining and switching between write states. ok inoguchi@ tb@
2021-01-11Print error if SSL_{connect,accept,shutdown}(3) don't run to completion.tb1-3/+13
2021-01-11Shut down the TLS connections properly.tb1-3/+28
2021-01-11Include headers used instead of relying on ssl.h pulling in the world.tb1-1/+7
2021-01-10Merge handshake_loop() into handshake(). There's no benefit in havingtb1-18/+7
this factored into a separate function.
2021-01-10tweak a commenttb1-2/+2
2021-01-10Link shared ciphers test to buildtb1-1/+3