Lines Matching defs:p12
1067 PKCS12 *p12;
1072 p12 = OPENSSL_malloc(sizeof(PKCS12));
1073 if (!p12) {
1077 p12->ber_bytes = OPENSSL_malloc(ber_len);
1078 if (!p12->ber_bytes) {
1079 OPENSSL_free(p12);
1083 memcpy(p12->ber_bytes, *ber_bytes, ber_len);
1084 p12->ber_len = ber_len;
1087 return p12;
1148 int PKCS12_parse(const PKCS12 *p12, const char *password, EVP_PKEY **out_pkey,
1167 CBS_init(&ber_bytes, p12->ber_bytes, p12->ber_len);
1189 int PKCS12_verify_mac(const PKCS12 *p12, const char *password,
1203 if (!PKCS12_parse(p12, password, &pkey, &cert, NULL)) {
1214 void PKCS12_free(PKCS12 *p12) {
1215 OPENSSL_free(p12->ber_bytes);
1216 OPENSSL_free(p12);