[#SSL_CTX_set_cipher_list]
= SSL&lowbar;CTX&lowbar;set&lowbar;cipher&lowbar;list
:mrdocs:

Set the TLSv1&period;2&hyphen;and&hyphen;below cipher list for an SSL context&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;cipher&lowbar;list(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    char const* str);
----

== Return Value

1 if at least one cipher could be selected, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose new connections inherit the cipher list&period;
| *str*
| Colon&hyphen;separated cipher list in openssl&hyphen;ciphers(1) format&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
