[#SSL_get_cipher_list]
= SSL&lowbar;get&lowbar;cipher&lowbar;list
:mrdocs:

Return the name of the n&hyphen;th enabled cipher for a connection (0&hyphen;based preference order)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const*
SSL&lowbar;get&lowbar;cipher&lowbar;list(
    xref:SSL.adoc[SSL] const* s,
    int n);
----

== Return Value

Static cipher name, or NULL if `s` is NULL or `n` is out of range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection to query&period;
| *n*
| Index into the preference&hyphen;ordered cipher list&period;
|===


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