boringssl/ssl
David Benjamin 33febf6048 Don't call ssl3_read_message from ssl3_read_app_data.
With this change, it should now always be the case that rr->length is
zero on entry to ssl3_read_message. This will let us detach everything
but application data from rr. This pushes some init_buf invariants down
into tls_open_record so we don't need to maintain them everywhere.

Change-Id: I206747434e0a9603eea7d19664734fd16fa2de8e
Reviewed-on: https://boringssl-review.googlesource.com/21524
Commit-Queue: Steven Valdez <svaldez@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Reviewed-by: Steven Valdez <svaldez@google.com>
2017-10-17 17:54:01 +00:00
..
test Always process handshake records in full. 2017-10-17 14:53:11 +00:00
bio_ssl.cc
CMakeLists.txt Migrate TLS 1.2 and below state machines to the new style. 2017-08-29 19:23:22 +00:00
custom_extensions.cc Rename ssl3_send_alert and ssl3_protocol_version. 2017-10-12 16:24:35 +00:00
d1_both.cc Switch a bunch of things from int to bool. 2017-10-17 17:06:51 +00:00
d1_lib.cc Switch a bunch of things from int to bool. 2017-10-17 17:06:51 +00:00
d1_pkt.cc Push read_shutdown logic down a layer. 2017-10-17 15:39:51 +00:00
d1_srtp.cc Clear a goto in d1_srtp.cc. 2017-09-22 15:15:48 +00:00
dtls_method.cc Switch a bunch of things from int to bool. 2017-10-17 17:06:51 +00:00
dtls_record.cc Make low-level record errors idempotent. 2017-10-17 16:05:41 +00:00
handshake_client.cc Have a bit more fun with Span. 2017-10-12 19:01:34 +00:00
handshake_server.cc Have a bit more fun with Span. 2017-10-12 19:01:34 +00:00
handshake.cc Switch a bunch of things from int to bool. 2017-10-17 17:06:51 +00:00
internal.h Don't call ssl3_read_message from ssl3_read_app_data. 2017-10-17 17:54:01 +00:00
s3_both.cc Don't call ssl3_read_message from ssl3_read_app_data. 2017-10-17 17:54:01 +00:00
s3_lib.cc Switch a bunch of things from int to bool. 2017-10-17 17:06:51 +00:00
s3_pkt.cc Don't call ssl3_read_message from ssl3_read_app_data. 2017-10-17 17:54:01 +00:00
span_test.cc Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00
ssl_aead_ctx.cc Push Span down a layer. 2017-10-10 14:27:58 +00:00
ssl_asn1.cc Make SNI per-connection, not per-session. 2017-09-06 20:25:26 +00:00
ssl_buffer.cc Push Span down a layer. 2017-10-10 14:27:58 +00:00
ssl_cert.cc Rename ssl3_send_alert and ssl3_protocol_version. 2017-10-12 16:24:35 +00:00
ssl_cipher.cc Switch int to bool in ssl_cipher.cc. 2017-10-02 20:41:20 +00:00
ssl_file.cc Switch OPENSSL_VERSION_NUMBER to 1.1.0. 2017-09-29 04:51:27 +00:00
ssl_key_share.cc Use constexpr to avoid kNamedGroups initializer 2017-10-10 21:01:59 +00:00
ssl_lib.cc Make low-level record errors idempotent. 2017-10-17 16:05:41 +00:00
ssl_privkey.cc Have a bit more fun with Span. 2017-10-12 19:01:34 +00:00
ssl_session.cc Rename ssl3_send_alert and ssl3_protocol_version. 2017-10-12 16:24:35 +00:00
ssl_stat.cc Migrate TLS 1.2 and below state machines to the new style. 2017-08-29 19:23:22 +00:00
ssl_test.cc Make low-level record errors idempotent. 2017-10-17 16:05:41 +00:00
ssl_transcript.cc Always process handshake records in full. 2017-10-17 14:53:11 +00:00
ssl_versions.cc Rename ssl3_send_alert and ssl3_protocol_version. 2017-10-12 16:24:35 +00:00
ssl_x509.cc Have fun with lock scopers. 2017-09-28 17:49:37 +00:00
t1_enc.cc Rename ssl3_send_alert and ssl3_protocol_version. 2017-10-12 16:24:35 +00:00
t1_lib.cc Fix uninitialized warning. 2017-10-16 19:09:02 +00:00
tls13_both.cc Have a bit more fun with Span. 2017-10-12 19:01:34 +00:00
tls13_client.cc Rename ssl3_send_alert and ssl3_protocol_version. 2017-10-12 16:24:35 +00:00
tls13_enc.cc Have a bit more fun with Span. 2017-10-12 19:01:34 +00:00
tls13_server.cc Have a bit more fun with Span. 2017-10-12 19:01:34 +00:00
tls_method.cc Switch a bunch of things from int to bool. 2017-10-17 17:06:51 +00:00
tls_record.cc Don't call ssl3_read_message from ssl3_read_app_data. 2017-10-17 17:54:01 +00:00