[#PKCS12_get0_mac]
= PKCS12&lowbar;get0&lowbar;mac
:mrdocs:

Retrieve MAC value and MAC&hyphen;parameter fields from a PKCS&num;12 PFX&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
PKCS12&lowbar;get0&lowbar;mac(
    xref:ASN1_OCTET_STRING.adoc[ASN1&lowbar;OCTET&lowbar;STRING] const** pmac,
    xref:X509_ALGOR.adoc[X509&lowbar;ALGOR] const** pmacalg,
    xref:ASN1_OCTET_STRING.adoc[ASN1&lowbar;OCTET&lowbar;STRING] const** psalt,
    xref:ASN1_INTEGER.adoc[ASN1&lowbar;INTEGER] const** piter,
    xref:PKCS12.adoc[PKCS12] const* p12);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pmac*
| Receives the MAC octet string, or NULL to skip&period;
| *pmacalg*
| Receives the MAC algorithm identifier, or NULL to skip&period;
| *psalt*
| Receives the MAC salt, or NULL to skip&period;
| *piter*
| Receives the MAC iteration count, or NULL to skip&period;
| *p12*
| PKCS&num;12 structure to query&period;
|===


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