• B
    Export SSL_bytes_to_cipher_list() · ccb8e6e0
    Benjamin Kaduk 提交于
    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: NMatt Caswell <matt@openssl.org>
    Reviewed-by: NRichard Levitte <levitte@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2279)
    ccb8e6e0
statem_srvr.c 113.2 KB