diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-01-30 18:24:17 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-02-23 19:40:25 +0100 |
commit | ccb8e6e0b1c536430290a87ba5c87dc072cc5a12 (patch) | |
tree | b80c31b90ba3f28ce3909348587fb91dc6bed166 /util | |
parent | Let ssl_get_cipher_by_char yield not-valid ciphers (diff) | |
download | openssl-ccb8e6e0b1c536430290a87ba5c87dc072cc5a12.tar.xz openssl-ccb8e6e0b1c536430290a87ba5c87dc072cc5a12.zip |
Export SSL_bytes_to_cipher_list()
Move ssl_bytes_to_cipher_list() to ssl_lib.c and create a public
wrapper around it. This lets application early callbacks easily get
SSL_CIPHER objects from the raw ciphers bytes without having to
reimplement the parsing code. In particular, they do not need to
know the details of the sslv2 format ClientHello's ciphersuite
specifications.
Document the new public function, including the arguably buggy behavior
of modifying the supplied SSL object. On the face of it, such a function
should be able to be pure, just a direct translation of wire octets to
internal data structures.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2279)
Diffstat (limited to 'util')
-rw-r--r-- | util/libssl.num | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/libssl.num b/util/libssl.num index 32b5f76549..7f5100290b 100644 --- a/util/libssl.num +++ b/util/libssl.num @@ -415,3 +415,4 @@ SSL_CTX_get_keylog_callback 415 1_1_1 EXIST::FUNCTION: SSL_get_peer_signature_type_nid 416 1_1_1 EXIST::FUNCTION: SSL_key_update 417 1_1_1 EXIST::FUNCTION: SSL_get_key_update_type 418 1_1_1 EXIST::FUNCTION: +SSL_bytes_to_cipher_list 419 1_1_1 EXIST::FUNCTION: |