Lines Matching full:oldpass
68 static int newpass_p12(PKCS12 *p12, char *oldpass, char *newpass);
69 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, char *oldpass,
71 static int newpass_bag(PKCS12_SAFEBAG *bag, char *oldpass, char *newpass);
78 int PKCS12_newpass(PKCS12 *p12, char *oldpass, char *newpass)
89 if (!PKCS12_verify_mac(p12, oldpass, -1)) {
94 if (!newpass_p12(p12, oldpass, newpass)) {
104 static int newpass_p12(PKCS12 *p12, char *oldpass, char *newpass)
122 bags = PKCS12_unpack_p7encdata(p7, oldpass, -1);
135 if (!newpass_bags(bags, oldpass, newpass)) {
178 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, char *oldpass,
184 oldpass, newpass))
192 static int newpass_bag(PKCS12_SAFEBAG *bag, char *oldpass, char *newpass)
200 if (!(p8 = PKCS8_decrypt(bag->value.shkeybag, oldpass, -1))) return 0;