boringssl/ssl
David Benjamin e8d0746b88 Prevent writing when write_shutdown is set.
Ideally we'd put this deep in the record layer, but sending alerts
currently awkwardly sets the field early, so we can't quite lock it out
this deep down.

This is mostly a sanity-check, but a later CL will fix SSL_shutdown's
post-handshake message processing, so this will help catch errors there.

Change-Id: I78e627c19547dbcdc85fb168795240d692baf031
Reviewed-on: https://boringssl-review.googlesource.com/21884
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 20:18:21 +00:00
..
test Always process handshake records in full. 2017-10-17 14:53:11 +00:00
bio_ssl.cc Switch a number of files to C++. 2017-07-12 20:54:02 +00:00
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 Prevent writing when write_shutdown is set. 2017-10-17 20:18:21 +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 Prevent writing when write_shutdown is set. 2017-10-17 20:18:21 +00:00
d1_srtp.cc Clear a goto in d1_srtp.cc. 2017-09-22 15:15:48 +00:00
dtls_method.cc Lift BIO above SSL_PROTOCOL_METHOD. 2017-10-17 19:53:52 +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 Lift BIO above SSL_PROTOCOL_METHOD. 2017-10-17 19:53:52 +00:00
internal.h Lift BIO above SSL_PROTOCOL_METHOD. 2017-10-17 19:53:52 +00:00
s3_both.cc Prevent writing when write_shutdown is set. 2017-10-17 20:18:21 +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 Prevent writing when write_shutdown is set. 2017-10-17 20:18:21 +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 Lift BIO above SSL_PROTOCOL_METHOD. 2017-10-17 19:53:52 +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 Lift BIO above SSL_PROTOCOL_METHOD. 2017-10-17 19:53:52 +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 Lift BIO above SSL_PROTOCOL_METHOD. 2017-10-17 19:53:52 +00:00
tls_record.cc Prevent writing when write_shutdown is set. 2017-10-17 20:18:21 +00:00