[#SSL_CIPHER_find]
= SSL&lowbar;CIPHER&lowbar;find
:mrdocs:

Look up a cipher suite by its two&hyphen;byte TLS cipher ID&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;CIPHER&lowbar;find(
    xref:SSL.adoc[SSL]* ssl,
    unsigned char const* ptr);
----

== Return Value

Matching SSL&lowbar;CIPHER, or NULL if not found or on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL object used to resolve the ID against known suites (may be unused by the implementation)&period;
| *ptr*
| Two&hyphen;byte cipher ID in network byte order (for example from SSL&lowbar;client&lowbar;hello&lowbar;get0&lowbar;ciphers)&period;
|===


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