boringssl/ssl
David Benjamin 9bbdf5832d Remove expect and received flight hooks.
Instead, the DTLS driver can detect these states implicitly based on
when we write flights and when the handshake completes. When we flush a
new flight, the peer has enough information to send their reply, so we
start a timer. When we begin assembling a new flight, we must have
received the final message in the peer's flight. (If there are
asynchronous events between, we may stop the timer later, but we may
freely stop the timer anytime before we next try to read something.)

The only place this fails is if we were the last to write a flight,
we'll have a stray timer. Clear it in a handshake completion hook.

Change-Id: I973c592ee5721192949a45c259b93192fa309edb
Reviewed-on: https://boringssl-review.googlesource.com/18864
Reviewed-by: Steven Valdez <svaldez@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-08-07 02:10:03 +00:00
..
test Fix a bug in and test the message callback. 2017-08-03 18:52:47 +00:00
bio_ssl.cc Switch a number of files to C++. 2017-07-12 20:54:02 +00:00
CMakeLists.txt Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00
custom_extensions.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
d1_both.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
d1_lib.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
d1_pkt.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
d1_srtp.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
dtls_method.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
dtls_record.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
handshake_client.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
handshake_server.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
internal.h Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
s3_both.cc Fix a bug in and test the message callback. 2017-08-03 18:52:47 +00:00
s3_lib.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
s3_pkt.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
span_test.cc Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00
ssl_aead_ctx.cc Make the bssl::SealRecord out_suffix arg fixed length. 2017-07-28 21:42:25 +00:00
ssl_asn1.cc Use new STACK_OF helpers. 2017-07-28 21:43:13 +00:00
ssl_buffer.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_cert.cc Fix miscellaneous clang-tidy warnings. 2017-08-01 20:39:46 +00:00
ssl_cipher.cc Document the behaviour of non-standard separators in cipher strings. 2017-07-25 20:48:44 +00:00
ssl_file.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_key_share.cc Convert SSL_ECDH_CTX to C++. 2017-07-20 21:27:23 +00:00
ssl_lib.cc Fix miscellaneous clang-tidy warnings. 2017-08-01 20:39:46 +00:00
ssl_privkey.cc More scopers. 2017-08-03 19:35:09 +00:00
ssl_session.cc Fix miscellaneous clang-tidy warnings. 2017-08-01 20:39:46 +00:00
ssl_stat.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_test.cc Make the bssl::SealRecord out_suffix arg fixed length. 2017-07-28 21:42:25 +00:00
ssl_transcript.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
ssl_versions.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_x509.cc More scopers. 2017-08-03 19:35:09 +00:00
t1_enc.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
t1_lib.cc Convert a few more scopers. 2017-08-01 19:45:15 +00:00
tls13_both.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
tls13_client.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
tls13_enc.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
tls13_server.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
tls_method.cc Remove expect and received flight hooks. 2017-08-07 02:10:03 +00:00
tls_record.cc Fix a bug in bssl::OpenRecord. 2017-08-04 21:36:13 +00:00