Lines Matching refs:pass
17 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen,
20 static int parse_bags(const STACK_OF(PKCS12_SAFEBAG) *bags, const char *pass,
24 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen,
35 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument
61 if (pass == NULL || *pass == '\0') { in PKCS12_parse()
63 pass = NULL; in PKCS12_parse()
65 pass = ""; in PKCS12_parse()
70 } else if (!PKCS12_verify_mac(p12, pass, -1)) { in PKCS12_parse()
74 } else if (pass == NULL || *pass == '\0') { in PKCS12_parse()
75 pass = NULL; in PKCS12_parse()
85 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) { in PKCS12_parse()
139 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen, in parse_pk12() argument
155 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in parse_pk12()
162 if (!parse_bags(bags, pass, passlen, pkey, ocerts, in parse_pk12()
175 static int parse_bags(const STACK_OF(PKCS12_SAFEBAG) *bags, const char *pass, in parse_bags() argument
182 pass, passlen, pkey, ocerts, in parse_bags()
190 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, in parse_bag() argument
219 if ((p8 = PKCS12_decrypt_skey_ex(bag, pass, passlen, in parse_bag()
261 return parse_bags(PKCS12_SAFEBAG_get0_safes(bag), pass, passlen, pkey, in parse_bag()