boringssl/ssl
David Benjamin 8d5f9da2e3 Abstract away BIO_flush calls in the handshake.
This is the first part to removing the buffer BIO. The eventual end
state is the SSL_PROTOCOL_METHOD is responsible for maintaining one
flight's worth of messages. In TLS, it will just be a buffer containing
the flight's ciphertext. In DTLS, it's the existing structure for
retransmit purposes. There will be hooks:

- add_message (synchronous)
- add_change_cipher_spec (synchronous)
- add_warning_alert (synchronous; needed until we lose SSLv3 client auth
  and TLS 1.3 draft 18; draft 19 will switch end_of_early_data to a
  handshake message)
- write_flight (BIO; flush_flight will be renamed to this)

This also preserves the exact return value of BIO_flush. Eventually all
the BIO_write calls will be hidden behind BIO_flush to, to be consistent
with other BIO-based calls, preserve the return value.

BUG=72

Change-Id: I74cd23759a17356aab3bb475a8ea42bd2cd115c9
Reviewed-on: https://boringssl-review.googlesource.com/13222
Reviewed-by: Adam Langley <agl@google.com>
2017-01-24 16:16:02 +00:00
..
test Run go fmt on bogo code. 2017-01-24 00:29:38 +00:00
CMakeLists.txt Do a cursory conversion of a few tests to GTest. 2017-01-21 00:17:05 +00:00
custom_extensions.c Pass explicit hs parameters into custom_extensions.c. 2016-12-06 19:49:36 +00:00
d1_both.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
d1_lib.c Add a helper function for resetting SSL_get_error state. 2017-01-04 04:48:44 +00:00
d1_pkt.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
d1_srtp.c Fix ssl_ctx_make_profiles error handling. 2016-09-27 13:27:06 +00:00
dtls_method.c Abstract away BIO_flush calls in the handshake. 2017-01-24 16:16:02 +00:00
dtls_record.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
handshake_client.c Abstract away BIO_flush calls in the handshake. 2017-01-24 16:16:02 +00:00
handshake_server.c Abstract away BIO_flush calls in the handshake. 2017-01-24 16:16:02 +00:00
internal.h Abstract away BIO_flush calls in the handshake. 2017-01-24 16:16:02 +00:00
s3_both.c Enabling 0-RTT on new Session Tickets. 2017-01-06 16:24:43 +00:00
s3_enc.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
s3_lib.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
s3_pkt.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_aead_ctx.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_asn1.c Enabling 0-RTT on new Session Tickets. 2017-01-06 16:24:43 +00:00
ssl_buffer.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_cert.c Remove unnecessary CBS_get_asn1_element. 2017-01-21 00:50:13 +00:00
ssl_cipher.c Remove old ChaCha20-Poly1305 AEAD. 2017-01-19 23:27:54 +00:00
ssl_ecdh.c Remove New Hope key agreement. 2016-12-10 01:06:31 +00:00
ssl_file.c
ssl_lib.c Add a getter for SSL_set_session_id_context. 2017-01-20 04:39:42 +00:00
ssl_rsa_cc.cc Convert one libssl function to C++11. 2017-01-17 21:51:06 +00:00
ssl_rsa.c Convert one libssl function to C++11. 2017-01-17 21:51:06 +00:00
ssl_session.c Enabling 0-RTT on new Session Tickets. 2017-01-06 16:24:43 +00:00
ssl_stat.c Move state and next_state to SSL_HANDSHAKE. 2016-12-12 22:09:01 +00:00
ssl_test.cc Do a cursory conversion of a few tests to GTest. 2017-01-21 00:17:05 +00:00
t1_enc.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
t1_lib.c Never send SNI warning alerts. 2017-01-19 23:03:11 +00:00
tls13_both.c Abstract away BIO_flush calls in the handshake. 2017-01-24 16:16:02 +00:00
tls13_client.c Fix TLS 1.3 NewSessionTicket processing. 2017-01-09 03:37:19 +00:00
tls13_enc.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tls13_server.c Enabling 0-RTT on new Session Tickets. 2017-01-06 16:24:43 +00:00
tls_method.c Abstract away BIO_flush calls in the handshake. 2017-01-24 16:16:02 +00:00
tls_record.c Enabling 0-RTT on new Session Tickets. 2017-01-06 16:24:43 +00:00