SSL_CIPHER_description

Write a human-readable description of a cipher suite into a buffer.

Synopsis

Declared in <openssl/ssl.h>

char*
SSL_CIPHER_description(
    SSL_CIPHER const* cipher,
    char* buf,
    int size);

Return Value

Pointer to the NUL-terminated description (possibly newly allocated), or NULL on error / undersized buffer.

Parameters

NameDescription
cipherCipher suite to describe.
bufDestination buffer of at least 128 bytes, or NULL to allocate with OPENSSL_malloc (caller frees).
sizeCapacity of buf in bytes when buf is non-NULL.