Lines Matching refs: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);
130 if (!newpass_bags(bags, oldpass, newpass)) {
173 static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, char *oldpass,
179 oldpass, newpass))
187 static int newpass_bag(PKCS12_SAFEBAG *bag, char *oldpass, char *newpass)
195 if (!(p8 = PKCS8_decrypt(bag->value.shkeybag, oldpass, -1))) return 0;