SSL_CIPHER_find

Look up a cipher suite by its two-byte TLS cipher ID.

Synopsis

Declared in <openssl/ssl.h>

SSL_CIPHER const*
SSL_CIPHER_find(
    SSL* ssl,
    unsigned char const* ptr);

Return Value

Matching SSL_CIPHER, or NULL if not found or on error.

Parameters

NameDescription
sslSSL object used to resolve the ID against known suites (may be unused by the implementation).
ptrTwo-byte cipher ID in network byte order (for example from SSL_client_hello_get0_ciphers).