boringssl/ssl
David Benjamin a1e9cabd8b Replace enc_flags with normalized version checks.
This removes the various non-PRF checks from SSL3_ENC_METHOD so that can
have a clearer purpose. It also makes TLS 1.0 through 1.2's
SSL3_ENC_METHOD tables identical and gives us an assert to ensure
nothing accesses the version bits before version negotiation.
Accordingly, ssl_needs_record_splitting was reordered slightly so we
don't rely on enc_method being initialized to TLS 1.2
pre-version-negotiation.

This leaves alert_value as the only part of SSL3_ENC_METHOD which may be
accessed before version negotiation.

Change-Id: If9e299e2ef5511b5fa442b2af654eed054c3e675
Reviewed-on: https://boringssl-review.googlesource.com/6842
Reviewed-by: Adam Langley <alangley@gmail.com>
2016-01-27 21:17:55 +00:00
..
pqueue
test Add some tests to ensure we ignore bogus curves and ciphers. 2016-01-26 21:51:55 +00:00
CMakeLists.txt Implement draft-ietf-tls-curve25519-01 in C. 2015-12-22 21:51:30 +00:00
custom_extensions.c
d1_both.c Switch s to ssl everywhere. 2015-12-22 23:28:22 +00:00
d1_clnt.c Prune finished labels from SSL3_ENC_METHOD. 2016-01-15 22:04:53 +00:00
d1_lib.c Switch s to ssl everywhere. 2015-12-22 23:28:22 +00:00
d1_meth.c
d1_pkt.c Move aead_{read,write}_ctx and next_proto_negotiated into ssl->s3. 2016-01-15 21:40:25 +00:00
d1_srtp.c
d1_srvr.c Prune finished labels from SSL3_ENC_METHOD. 2016-01-15 22:04:53 +00:00
dtls_record.c Move aead_{read,write}_ctx and next_proto_negotiated into ssl->s3. 2016-01-15 21:40:25 +00:00
internal.h Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
s3_both.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
s3_clnt.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
s3_enc.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
s3_lib.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
s3_meth.c
s3_pkt.c Move aead_{read,write}_ctx and next_proto_negotiated into ssl->s3. 2016-01-15 21:40:25 +00:00
s3_srvr.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
ssl_aead_ctx.c Implement draft-ietf-tls-chacha20-poly1305-04. 2015-12-16 23:34:56 +00:00
ssl_asn1.c
ssl_buffer.c
ssl_cert.c
ssl_cipher.c Fix -Wformat-nonliteral violation in ssl_cipher.c. 2016-01-21 20:56:59 +00:00
ssl_ecdh.c Drop the silly 'ECDH_' prefix on X25519. 2016-01-20 17:26:13 +00:00
ssl_file.c
ssl_lib.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
ssl_rsa.c
ssl_session.c Consider session if the client supports tickets but offered a session ID. 2016-01-15 20:08:52 +00:00
ssl_stat.c
ssl_test.cc Implement draft-ietf-tls-chacha20-poly1305-04. 2015-12-16 23:34:56 +00:00
t1_enc.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
t1_lib.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00
tls_record.c Replace enc_flags with normalized version checks. 2016-01-27 21:17:55 +00:00