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

Name

Description

ssl

SSL object used to resolve the ID against known suites (may be unused by the implementation).

ptr

Two‐byte cipher ID in network byte order (for example from SSL_client_hello_get0_ciphers).

Created with MrDocs