Verify the HMAC of a PKCS#12 object.

Synopsis

Declared in <openssl/pkcs12.h>

int
PKCS12_verify_mac(
    PKCS12* p12,
    char const* pass,
    int passlen);

Return Value

1 if the MAC is valid, 0 otherwise.

Parameters

Name

Description

p12

PKCS#12 structure to verify.

pass

Passphrase for the HMAC.

passlen

Length of pass, or ‐1 to use strlen().

Created with MrDocs