Lines Matching refs:oldpass
20 static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass);
21 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, const char *oldpass,
24 static int newpass_bag(PKCS12_SAFEBAG *bag, const char *oldpass,
34 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass) in PKCS12_newpass() argument
45 if (!PKCS12_verify_mac(p12, oldpass, -1)) { in PKCS12_newpass()
50 if (!newpass_p12(p12, oldpass, newpass)) { in PKCS12_newpass()
60 static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass) in newpass_p12() argument
82 bags = PKCS12_unpack_p7encdata(p7, oldpass, -1); in newpass_p12()
92 if (!newpass_bags(bags, oldpass, newpass, in newpass_p12()
140 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, const char *oldpass, in newpass_bags() argument
146 if (!newpass_bag(sk_PKCS12_SAFEBAG_value(bags, i), oldpass, newpass, in newpass_bags()
155 static int newpass_bag(PKCS12_SAFEBAG *bag, const char *oldpass, in newpass_bag() argument
168 if ((p8 = PKCS8_decrypt_ex(bag->value.shkeybag, oldpass, -1, in newpass_bag()