Let ssl_get_cipher_by_char yield not-valid ciphers
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 6 Feb 2017 17:30:16 +0000 (11:30 -0600)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Feb 2017 18:24:37 +0000 (19:24 +0100)
commit60d685d196e8d594d754751e4852f01d80d8c0cc
treef8e7d0739c62f6a312fcc85004ebe811dba68aad
parent650c6e41d60905fa1396dff2c7fe4d6fbb7239ba
Let ssl_get_cipher_by_char yield not-valid ciphers

Now that we have made SCSVs into more of a first-class object, provide
a way for the bytes-to-SSL_CIPHER conversion to actually return them.
Add a flag 'all' to ssl_get_cipher_by_char to indicate that we want
all the known ciphers, not just the ones valid for encryption.  This will,
in practice, let the caller retrieve the SCSVs.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2279)
ssl/ssl_ciph.c
ssl/ssl_locl.h
ssl/statem/statem_clnt.c
ssl/statem/statem_srvr.c