[#SSL_get_current_cipher]
= SSL&lowbar;get&lowbar;current&lowbar;cipher
:mrdocs:

Return the cipher suite currently in use on an established connection&period;

== Synopsis

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

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

== Return Value

Pointer to the active SSL&lowbar;CIPHER, or NULL if no session has been established&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection to query&period;
|===


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