PKCS12_SAFEBAG_get0_pkcs8

Return the encrypted PKCS#8 structure from a pkcs8ShroudedKeyBag safeBag.

Synopsis

Declared in <openssl/pkcs12.h>

X509_SIG const*
PKCS12_SAFEBAG_get0_pkcs8(PKCS12_SAFEBAG const* bag);

Return Value

Internal X509_SIG pointer for the shrouded key, or NULL if bag is not pkcs8ShroudedKeyBag; do not free.

Parameters

NameDescription
bagSafeBag to query.