Change the password protecting a PKCS#12 structure.
Declared in <openssl/pkcs12.h>
int
PKCS12_newpass(
PKCS12* p12,
char const* oldpass,
char const* newpass);
1 on success, 0 on error.
| Name | Description |
|---|---|
| p12 | PKCS#12 structure to re-encrypt. |
| oldpass | Current passphrase (UTF-8, or ISO8859-1 if not valid UTF-8; use "" if none). |
| newpass | New passphrase (UTF-8, or ISO8859-1 if not valid UTF-8). |