• Home
  • Raw
  • Download

Lines Matching refs:p12

750   PKCS12 *p12;  in d2i_PKCS12()  local
752 p12 = OPENSSL_malloc(sizeof(PKCS12)); in d2i_PKCS12()
753 if (!p12) { in d2i_PKCS12()
757 p12->ber_bytes = OPENSSL_malloc(ber_len); in d2i_PKCS12()
758 if (!p12->ber_bytes) { in d2i_PKCS12()
759 OPENSSL_free(p12); in d2i_PKCS12()
763 OPENSSL_memcpy(p12->ber_bytes, *ber_bytes, ber_len); in d2i_PKCS12()
764 p12->ber_len = ber_len; in d2i_PKCS12()
770 *out_p12 = p12; in d2i_PKCS12()
773 return p12; in d2i_PKCS12()
839 int i2d_PKCS12(const PKCS12 *p12, uint8_t **out) { in i2d_PKCS12() argument
840 if (p12->ber_len > INT_MAX) { in i2d_PKCS12()
846 return (int)p12->ber_len; in i2d_PKCS12()
850 *out = OPENSSL_malloc(p12->ber_len); in i2d_PKCS12()
855 OPENSSL_memcpy(*out, p12->ber_bytes, p12->ber_len); in i2d_PKCS12()
857 OPENSSL_memcpy(*out, p12->ber_bytes, p12->ber_len); in i2d_PKCS12()
858 *out += p12->ber_len; in i2d_PKCS12()
860 return (int)p12->ber_len; in i2d_PKCS12()
863 int i2d_PKCS12_bio(BIO *bio, const PKCS12 *p12) { in i2d_PKCS12_bio() argument
864 return BIO_write_all(bio, p12->ber_bytes, p12->ber_len); in i2d_PKCS12_bio()
867 int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12) { in i2d_PKCS12_fp() argument
873 int ret = i2d_PKCS12_bio(bio, p12); in i2d_PKCS12_fp()
878 int PKCS12_parse(const PKCS12 *p12, const char *password, EVP_PKEY **out_pkey, in PKCS12_parse() argument
897 CBS_init(&ber_bytes, p12->ber_bytes, p12->ber_len); in PKCS12_parse()
919 int PKCS12_verify_mac(const PKCS12 *p12, const char *password, in PKCS12_verify_mac() argument
933 if (!PKCS12_parse(p12, password, &pkey, &cert, NULL)) { in PKCS12_verify_mac()
1275 void PKCS12_free(PKCS12 *p12) { in PKCS12_free() argument
1276 if (p12 == NULL) { in PKCS12_free()
1279 OPENSSL_free(p12->ber_bytes); in PKCS12_free()
1280 OPENSSL_free(p12); in PKCS12_free()