boringssl/ssl
David Benjamin 499742c60f Introduce bssl::Array<T> and use it in SSLKeyShare.
An Array<T> is an owning Span<T>. It's similar to absl::FixedArray<T>
but plays well with OPENSSL_malloc and doesn't implement inlining. With
OPENSSL_cleanse folded into OPENSSL_free, we could go nuts with
UniquePtr<uint8_t>, but having the pointer and length tied together is
nice for other reasons. Notably, Array<T> plays great with Span<T>.

Also switch the other parameter to a Span.

Bug: 132
Change-Id: I4cdcf810cf2838208c8ba9fcc6215c1e369dffb8
Reviewed-on: https://boringssl-review.googlesource.com/20667
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-09-27 17:29:23 +00:00
..
test Revert "Work around a Java client bug when rotating certificates." 2017-09-26 22:27:47 +00:00
bio_ssl.cc
CMakeLists.txt
custom_extensions.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
d1_both.cc Fix empty fragment handling in DTLS message reassembly. 2017-09-07 22:11:10 +00:00
d1_lib.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
d1_pkt.cc More miscellaneous bools. 2017-09-01 15:07:52 +00:00
d1_srtp.cc Clear a goto in d1_srtp.cc. 2017-09-22 15:15:48 +00:00
dtls_method.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
dtls_record.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
handshake_client.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
handshake_server.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
handshake.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
internal.h Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
s3_both.cc SSL3_STATE ints to bools. 2017-09-01 15:07:32 +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 More miscellaneous bools. 2017-09-01 15:07:52 +00:00
span_test.cc
ssl_aead_ctx.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
ssl_asn1.cc Make SNI per-connection, not per-session. 2017-09-06 20:25:26 +00:00
ssl_buffer.cc Zero memory in |OPENSSL_free|. 2017-09-06 19:22:46 +00:00
ssl_cert.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
ssl_cipher.cc Add SSL_CIPHER_get_prf_nid. 2017-09-21 21:44:15 +00:00
ssl_file.cc Convert comments in ssl. 2017-08-29 21:33:32 +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 Make SNI per-connection, not per-session. 2017-09-06 20:25:26 +00:00
ssl_privkey.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
ssl_session.cc Revert "Work around a Java client bug when rotating certificates." 2017-09-26 22:27:47 +00:00
ssl_stat.cc
ssl_test.cc Revert "Work around a Java client bug when rotating certificates." 2017-09-26 22:27:47 +00:00
ssl_transcript.cc Remove unnecessary parameter. 2017-08-31 14:18:26 +00:00
ssl_versions.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
ssl_x509.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
t1_enc.cc Simplify tls1_change_cipher_spec. 2017-09-22 15:18:17 +00:00
t1_lib.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
tls13_both.cc More miscellaneous bools. 2017-09-01 15:07:52 +00:00
tls13_client.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
tls13_enc.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +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 Convert comments in ssl. 2017-08-29 21:33:32 +00:00
tls_record.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00