[#SSL_CIPHER_get_digest_nid]
= SSL&lowbar;CIPHER&lowbar;get&lowbar;digest&lowbar;nid
:mrdocs:

Return the NID of the MAC digest used by a cipher for record protection&period;

== Synopsis

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

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

== Return Value

Digest NID, or NID&lowbar;undef when the suite has no MAC (for example AEAD suites)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| Cipher suite to query&period;
|===


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