PKCS12
PKCS12 *p12 = NULL;
PKCS12 *p12 = NULL;
int dump_certs_keys_p12(BIO *out, const PKCS12 *p12,
int dump_certs_keys_p12(BIO *out, const PKCS12 *p12, const char *pass,
ASN1_ITEM_ref(PKCS12),
IMPLEMENT_LEGACY_ERR_LOAD(PKCS12)
int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes)
STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12)
ASN1_SEQUENCE(PKCS12) = {
ASN1_SIMPLE(PKCS12, version, ASN1_INTEGER),
ASN1_SIMPLE(PKCS12, authsafes, PKCS7),
ASN1_OPT(PKCS12, mac, PKCS12_MAC_DATA)
} ASN1_SEQUENCE_END(PKCS12)
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(PKCS12, PKCS12, PKCS12)
PKCS12 *PKCS12_new(void)
return (PKCS12 *)ASN1_item_new(ASN1_ITEM_rptr(PKCS12));
void PKCS12_free(PKCS12 *p12)
ASN1_item_free((ASN1_VALUE *)p12, ASN1_ITEM_rptr(PKCS12));
PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert,
PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert,
PKCS12 *PKCS12_create_ex2(const char *pass, const char *name, EVP_PKEY *pkey,
PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int nid_p7,
PKCS12 *p12;
PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int nid_p7)
PKCS12 *p12 = NULL;
PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq)
PKCS12 *pkcs12;
PKCS12 *PKCS12_init(int mode)
const PKCS7_CTX *ossl_pkcs12_get0_pkcs7ctx(const PKCS12 *p12)
static int parse_pk12(PKCS12 *p12, const char *pass, int passlen,
static int parse_pk12(PKCS12 *p12, const char *pass, int passlen,
int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
const PKCS7_CTX *ossl_pkcs12_get0_pkcs7ctx(const PKCS12 *p12);
static int pkcs12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
int PKCS12_mac_present(const PKCS12 *p12)
int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen)
int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,
const PKCS12 *p12)
static int pkcs12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
int PKCS12_set_pbmac1_pbkdf2(PKCS12 *p12, const char *pass, int passlen,
static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass);
int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass)
static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass)
int i2d_PKCS12_bio(BIO *bp, const PKCS12 *p12)
return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS12), bp, p12);
int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12)
return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS12), fp, p12);
PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12)
return ASN1_item_d2i_bio_ex(ASN1_ITEM_rptr(PKCS12), bp, p12, libctx, propq);
PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12)
return ASN1_item_d2i_fp_ex(ASN1_ITEM_rptr(PKCS12), fp, p12, libctx, propq);
PKCS12 *p12;
static char *find_friendly_name(PKCS12 *p12)
PKCS12 *p12 = NULL;
PKCS12 *p12;
PKCS12 *p12;
ASN1_ITEM_ref(PKCS12),
int PKCS12_mac_present(const PKCS12 *p12);
const PKCS12 *p12);
int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);
STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);
PKCS12 *PKCS12_init(int mode);
PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq);
int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);
int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,
int PKCS12_set_pbmac1_pbkdf2(PKCS12 *p12, const char *pass, int passlen,
int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,
DECLARE_ASN1_FUNCTIONS(PKCS12)
int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,
PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey,
PKCS12 *PKCS12_create_ex2(const char *pass, const char *name, EVP_PKEY *pkey,
PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int p7_nid,
int i2d_PKCS12_bio(BIO *bp, const PKCS12 *p12);
int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12);
PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);
PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);
int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);
PKCS12 *p12;
static int write_p12(PKCS12 *p12, const char *outfile)
static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac)
PKCS12 *p12 = NULL;
static PKCS12 *read_p12(const char *infile, const PKCS12_ENC *mac)
PKCS12 *p12 = NULL;
static int check_p12_mac(PKCS12 *p12, const PKCS12_ENC *mac)
static int write_p12(PKCS12 *p12, const char *outfile);
static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac);
static PKCS12 *read_p12(const char *infile, const PKCS12_ENC *mac);
static int check_p12_mac(PKCS12 *p12, const PKCS12_ENC *mac);
PKCS12 *p12;
PKCS12 *p12;
PKCS12 *p12;
PKCS12 *p12;
PKCS12 *p12 = NULL;
static PKCS12 *pkcs12_create_ex2_setup(EVP_PKEY **key, X509 **cert, STACK_OF(X509) **ca)
PKCS12 *p12 = NULL;
PKCS12 *ptr = NULL, *p12 = NULL;
PKCS12 *p12 = NULL;
static PKCS12 *PKCS12_load(const char *fpath)
PKCS12 *p12 = NULL;
static int changepass(PKCS12 *p12, EVP_PKEY *key, X509 *cert, STACK_OF(X509) *ca)
PKCS12 *p12new = NULL;
PKCS12 *p12 = NULL;
PKCS12 *p12 = NULL;
PKCS12 *p12_parsed = NULL;
PKCS12 *p12_recreated = NULL;