Don't offer or accept ciphersuites that we can't support
authorMatt Caswell <matt@openssl.org>
Fri, 1 May 2020 08:17:40 +0000 (09:17 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 6 May 2020 10:49:59 +0000 (11:49 +0100)
commit4264ecd4cebf7cee4bd437f1739e9f4297ae5b70
tree7791aa90cb883726e310cd49c780635f7fd10d5d
parent15dd075f708c58bbbbd18f98608fecfcb97f693a
Don't offer or accept ciphersuites that we can't support

We were not correctly detecting whether TLSv1.3 ciphersuites could
actually be supported by the available provider implementations. For
example a FIPS client would still offer CHACHA20-POLY1305 based
ciphersuites even though it couldn't actually use them. Similarly on
the server would try to use CHACHA20-POLY1305 and then fail the
handshake.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11700)
ssl/ssl_ciph.c