boringssl/ssl
David Benjamin 751d1a1c22 Fold ssl_open_record_fatal_alert into ssl_open_record_error.
The only difference is whether there's an alert to send back, but we'll
need to allow an "error without alert" in several cases anyway:

1. If the server sees an HTTP request or garbage instead of a
   ClientHello, it shouldn't send an alert.

2. Resurfaced errors.

Just make zero signal no alert for now. Later on, I'm thinking we might
just want to put the alert into the outgoing buffer and make it further
uniform.

This also gives us only one error state to keep track of rather than
two.

Bug: 206
Change-Id: Ia821d9f89abd2ca6010e8851220d4e070bc42fa1
Reviewed-on: https://boringssl-review.googlesource.com/21286
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Reviewed-by: Steven Valdez <svaldez@google.com>
2017-10-10 03:07:57 +00:00
..
test Fix comment about EarlyCCS. 2017-10-06 22:46:57 +00:00
bio_ssl.cc
CMakeLists.txt
custom_extensions.cc
d1_both.cc Switch more things to Array. 2017-09-27 18:29:43 +00:00
d1_lib.cc
d1_pkt.cc Fold ssl_open_record_fatal_alert into ssl_open_record_error. 2017-10-10 03:07:57 +00:00
d1_srtp.cc Clear a goto in d1_srtp.cc. 2017-09-22 15:15:48 +00:00
dtls_method.cc
dtls_record.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
handshake_client.cc Inline ssl_clear_tls13_state. 2017-09-27 18:32:34 +00:00
handshake_server.cc Switch more things to Array. 2017-09-27 18:29:43 +00:00
handshake.cc Replay the entire error queue on ssl_hs_error. 2017-10-09 21:53:33 +00:00
internal.h Fold ssl_open_record_fatal_alert into ssl_open_record_error. 2017-10-10 03:07:57 +00:00
s3_both.cc Remove old TLS 1.3 variants (NoSessionID and RecordType). 2017-10-03 18:12:23 +00:00
s3_lib.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
s3_pkt.cc Fold ssl_open_record_fatal_alert into ssl_open_record_error. 2017-10-10 03:07:57 +00:00
span_test.cc
ssl_aead_ctx.cc Add bssl::Span<T>::subspan and use it. 2017-10-02 19:33:28 +00:00
ssl_asn1.cc
ssl_buffer.cc
ssl_cert.cc
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 Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
ssl_lib.cc Switch int to bool in ssl_cipher.cc. 2017-10-02 20:41:20 +00:00
ssl_privkey.cc
ssl_session.cc Add SSL_SESSION_{get,set}_protocol_version. 2017-10-03 19:52:34 +00:00
ssl_stat.cc
ssl_test.cc Replay the entire error queue on ssl_hs_error. 2017-10-09 21:53:33 +00:00
ssl_transcript.cc Remove unnecessary parameter. 2017-08-31 14:18:26 +00:00
ssl_versions.cc Add SSL_SESSION_{get,set}_protocol_version. 2017-10-03 19:52:34 +00:00
ssl_x509.cc Have fun with lock scopers. 2017-09-28 17:49:37 +00:00
t1_enc.cc Add SSL_SESSION_{get,set}_protocol_version. 2017-10-03 19:52:34 +00:00
t1_lib.cc Add SSL_SESSION_{get,set}_protocol_version. 2017-10-03 19:52:34 +00:00
tls13_both.cc More miscellaneous bools. 2017-09-01 15:07:52 +00:00
tls13_client.cc Inline ssl_clear_tls13_state. 2017-09-27 18:32:34 +00:00
tls13_enc.cc Add TLS 1.3 EXPORTER_SECRET to SSLKEYLOGFILE. 2017-10-04 15:24:58 +00:00
tls13_server.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
tls_method.cc
tls_record.cc Fold ssl_open_record_fatal_alert into ssl_open_record_error. 2017-10-10 03:07:57 +00:00