PKCS12_get0_mac

Retrieve MAC value and MAC-parameter fields from a PKCS#12 PFX.

Synopsis

Declared in <openssl/pkcs12.h>

void
PKCS12_get0_mac(
    ASN1_OCTET_STRING const** pmac,
    X509_ALGOR const** pmacalg,
    ASN1_OCTET_STRING const** psalt,
    ASN1_INTEGER const** piter,
    PKCS12 const* p12);

Parameters

NameDescription
pmacReceives the MAC octet string, or NULL to skip.
pmacalgReceives the MAC algorithm identifier, or NULL to skip.
psaltReceives the MAC salt, or NULL to skip.
piterReceives the MAC iteration count, or NULL to skip.
p12PKCS#12 structure to query.