[#PKCS12_verify_mac]
= PKCS12&lowbar;verify&lowbar;mac
:mrdocs:

Verify the HMAC of a PKCS&num;12 object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS12&lowbar;verify&lowbar;mac(
    xref:PKCS12.adoc[PKCS12]* p12,
    char const* pass,
    int passlen);
----

== Return Value

1 if the MAC is valid, 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p12*
| PKCS&num;12 structure to verify&period;
| *pass*
| Passphrase for the HMAC&period;
| *passlen*
| Length of `pass,` or &hyphen;1 to use strlen()&period;
|===


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