[#PKCS12_newpass]
= PKCS12&lowbar;newpass
:mrdocs:

Change the password protecting a PKCS&num;12 structure&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs12&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS12&lowbar;newpass(
    xref:PKCS12.adoc[PKCS12]* p12,
    char const* oldpass,
    char const* newpass);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p12*
| PKCS&num;12 structure to re&hyphen;encrypt&period;
| *oldpass*
| Current passphrase (UTF&hyphen;8, or ISO8859&hyphen;1 if not valid UTF&hyphen;8&semi; use &quot;&quot; if none)&period;
| *newpass*
| New passphrase (UTF&hyphen;8, or ISO8859&hyphen;1 if not valid UTF&hyphen;8)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
