Go to file
David Benjamin f2fedefdca Simplify HelloVerifyRequest processing.
Rather than switching the order of the ServerHello and HelloVerifyRequest
states and processing each twice, have the states follow the protocol order.
HelloVerifyRequest reading is optional and ServerHello is strict. Use the
send_cookie bit to determine whether we're expecting a cookie or not.

Fix the dtls1_stop_timer call in these states to consistently hit the end of a
server flight; the previous flight should not be cleared from the retransmit
buffer until the entire next flight is received. That said, OpenSSL doesn't
appear to implement the part where, on receipt of the previous peer flight, the
buffered flight is retransmitted. (With the exception of a SSL3_MT_FINISHED
special-case in dtls1_read_bytes.) So if the peer is also OpenSSL, this doesn't
do anything.

Also fix the DTLS test which wasn't actually asserting that the ClientHello
matched.

Change-Id: Ia542190972dbffabb837d32c9d453a243caa90b2
Reviewed-on: https://boringssl-review.googlesource.com/1551
Reviewed-by: Adam Langley <agl@google.com>
2014-08-18 18:05:10 +00:00
crypto Mark all SSL_CIPHERs as const. 2014-08-18 17:55:05 +00:00
doc Inital import. 2014-06-20 13:17:32 -07:00
include/openssl Simplify HelloVerifyRequest processing. 2014-08-18 18:05:10 +00:00
ssl Simplify HelloVerifyRequest processing. 2014-08-18 18:05:10 +00:00
tool Add stitched RC4-MD5 as an AEAD. 2014-06-30 23:01:17 +00:00
util Add PKCS7_bundle_certificates. 2014-08-07 18:12:25 +00:00
.clang-format Inital import. 2014-06-20 13:17:32 -07:00
.gitignore Inital import. 2014-06-20 13:17:32 -07:00
BUILDING Increase minimum required cmake version 2014-08-18 17:23:37 +00:00
CMakeLists.txt Increase minimum required cmake version 2014-08-18 17:23:37 +00:00