SSL_CTX_set_cipher_list

Set the TLSv1.2-and-below cipher list for an SSL context.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_set_cipher_list(
    SSL_CTX* ctx,
    char const* str);

Return Value

1 if at least one cipher could be selected, or 0 on failure.

Parameters

NameDescription
ctxSSL context whose new connections inherit the cipher list.
strColon-separated cipher list in openssl-ciphers(1) format.