Lines Matching refs:pass
65 static int parse_pk12( PKCS12 *p12, const char *pass, int passlen,
68 static int parse_bags( STACK_OF(PKCS12_SAFEBAG) *bags, const char *pass,
73 static int parse_bag( PKCS12_SAFEBAG *bag, const char *pass, int passlen,
83 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument
113 if(!pass || !*pass) { in PKCS12_parse()
114 if(PKCS12_verify_mac(p12, NULL, 0)) pass = NULL; in PKCS12_parse()
115 else if(PKCS12_verify_mac(p12, "", 0)) pass = ""; in PKCS12_parse()
120 } else if (!PKCS12_verify_mac(p12, pass, -1)) { in PKCS12_parse()
125 if (!parse_pk12 (p12, pass, -1, pkey, cert, ca)) in PKCS12_parse()
144 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen, in parse_pk12() argument
161 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in parse_pk12()
167 if (!parse_bags(bags, pass, passlen, pkey, cert, ca, in parse_pk12()
181 static int parse_bags(STACK_OF(PKCS12_SAFEBAG) *bags, const char *pass, in parse_bags() argument
189 pass, passlen, pkey, cert, ca, keyid, in parse_bags()
199 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, in parse_bag() argument
240 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen))) in parse_bag()
287 return parse_bags(bag->value.safes, pass, passlen, in parse_bag()