Return the PKCS#8 private key info from a keyBag or pkcs8ShroudedKeyBag.

Synopsis

Declared in <openssl/pkcs12.h>

PKCS8_PRIV_KEY_INFO const*
PKCS12_SAFEBAG_get0_p8inf(PKCS12_SAFEBAG const* bag);

Return Value

PKCS#8 private key info, or NULL on error.

Parameters

Name

Description

bag

SafeBag containing a private key.

Created with MrDocs