PKCS12_SAFEBAG_get_bag_nid

Get the type of the object contained within a safeBag.

Synopsis

Declared in <openssl/pkcs12.h>

int
PKCS12_SAFEBAG_get_bag_nid(PKCS12_SAFEBAG const* bag);

Return Value

NID of the contained object, or -1 if none.

Parameters

NameDescription
bagSafeBag to query.