boringssl/ssl
David Benjamin e664a534af Return null from SSL_get0_peer_certificates if unauthenticated.
SSL_get0_peer_certificates is documented to return NULL if the peer was
anonymous, but it actually returns a non-NULL empty list (except in SSL
3.0 where the Certificate message and thus ssl_parse_cert_chain is
skipped).

Make the implementation match the documentation.

Change-Id: Ib3e25d2155f316cc5e9eb3ab7f74b78e08b8a86b
Reviewed-on: https://boringssl-review.googlesource.com/18226
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-07-25 18:53:48 +00:00
..
test Add a bunch of scopers. 2017-07-20 20:38:55 +00:00
bio_ssl.cc Switch a number of files to C++. 2017-07-12 20:54:02 +00:00
CMakeLists.txt Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00
custom_extensions.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
d1_both.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
d1_lib.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
d1_pkt.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
d1_srtp.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
dtls_method.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
dtls_record.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
handshake_client.cc Return null from SSL_get0_peer_certificates if unauthenticated. 2017-07-25 18:53:48 +00:00
handshake_server.cc Return null from SSL_get0_peer_certificates if unauthenticated. 2017-07-25 18:53:48 +00:00
internal.h Return null from SSL_get0_peer_certificates if unauthenticated. 2017-07-25 18:53:48 +00:00
s3_both.cc Convert SSL_ECDH_CTX to C++. 2017-07-20 21:27:23 +00:00
s3_lib.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
s3_pkt.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
span_test.cc Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00
ssl_aead_ctx.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_asn1.cc Remove obsolete TODOs. 2017-07-24 22:28:34 +00:00
ssl_buffer.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_cert.cc Return null from SSL_get0_peer_certificates if unauthenticated. 2017-07-25 18:53:48 +00:00
ssl_cipher.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_file.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_key_share.cc Convert SSL_ECDH_CTX to C++. 2017-07-20 21:27:23 +00:00
ssl_lib.cc Add a bunch of scopers. 2017-07-20 20:38:55 +00:00
ssl_privkey.cc Add a bunch of scopers. 2017-07-20 20:38:55 +00:00
ssl_session.cc Add a bunch of scopers. 2017-07-20 20:38:55 +00:00
ssl_stat.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_test.cc Return null from SSL_get0_peer_certificates if unauthenticated. 2017-07-25 18:53:48 +00:00
ssl_transcript.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
ssl_versions.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
ssl_x509.cc Add a bunch of scopers. 2017-07-20 20:38:55 +00:00
t1_enc.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
t1_lib.cc Convert SSL_ECDH_CTX to C++. 2017-07-20 21:27:23 +00:00
tls13_both.cc Return null from SSL_get0_peer_certificates if unauthenticated. 2017-07-25 18:53:48 +00:00
tls13_client.cc Convert SSL_ECDH_CTX to C++. 2017-07-20 21:27:23 +00:00
tls13_enc.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
tls13_server.cc Convert SSL_TRANSCRIPT to C++. 2017-07-20 21:10:02 +00:00
tls_method.cc Switch BORINGSSL_INTERNAL_CXX_TYPES in favor of subclassing games. 2017-07-20 17:24:12 +00:00
tls_record.cc Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00