Lines Matching refs:oldpass
69 static int newpass_p12(PKCS12 *p12, char *oldpass, char *newpass);
70 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, char *oldpass,
72 static int newpass_bag(PKCS12_SAFEBAG *bag, char *oldpass, char *newpass);
79 int PKCS12_newpass(PKCS12 *p12, char *oldpass, char *newpass)
91 if (!PKCS12_verify_mac(p12, oldpass, -1)) {
96 if (!newpass_p12(p12, oldpass, newpass)) {
106 static int newpass_p12(PKCS12 *p12, char *oldpass, char *newpass)
126 bags = PKCS12_unpack_p7encdata(p7, oldpass, -1);
138 if (!newpass_bags(bags, oldpass, newpass)) {
187 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, char *oldpass,
192 if (!newpass_bag(sk_PKCS12_SAFEBAG_value(bags, i), oldpass, newpass))
200 static int newpass_bag(PKCS12_SAFEBAG *bag, char *oldpass, char *newpass)
209 if (!(p8 = PKCS8_decrypt(bag->value.shkeybag, oldpass, -1)))