aboutsummaryrefslogtreecommitdiff
path: root/secure/lib/libcrypto/man/man3/PKCS12_newpass.3
diff options
context:
space:
mode:
Diffstat (limited to 'secure/lib/libcrypto/man/man3/PKCS12_newpass.3')
-rw-r--r--secure/lib/libcrypto/man/man3/PKCS12_newpass.332
1 files changed, 14 insertions, 18 deletions
diff --git a/secure/lib/libcrypto/man/man3/PKCS12_newpass.3 b/secure/lib/libcrypto/man/man3/PKCS12_newpass.3
index f6053a28e12d..65291e441603 100644
--- a/secure/lib/libcrypto/man/man3/PKCS12_newpass.3
+++ b/secure/lib/libcrypto/man/man3/PKCS12_newpass.3
@@ -68,8 +68,6 @@
. \}
.\}
.rr rF
-.\"
-.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{\
@@ -132,8 +130,8 @@
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
-.IX Title "PKCS12_NEWPASS 3"
-.TH PKCS12_NEWPASS 3 "2021-03-25" "1.1.1k" "OpenSSL"
+.IX Title "PKCS12_NEWPASS 3ossl"
+.TH PKCS12_NEWPASS 3ossl "2023-09-19" "3.0.11" "OpenSSL"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -153,8 +151,7 @@ PKCS12_newpass \- change the password of a PKCS12 structure
.PP
\&\fBp12\fR is a pointer to a \s-1PKCS12\s0 structure. \fBoldpass\fR is the existing password
and \fBnewpass\fR is the new password.
-.SH "NOTES"
-.IX Header "NOTES"
+.PP
Each of \fBoldpass\fR and \fBnewpass\fR is independently interpreted as a string in
the \s-1UTF\-8\s0 encoding. If it is not valid \s-1UTF\-8,\s0 it is assumed to be \s-1ISO8859\-1\s0
instead.
@@ -164,6 +161,15 @@ In particular, this means that passwords in the locale character set
use. This may include passwords from local text files, or input from
the terminal or command line. Refer to the documentation of
\&\fBUI_OpenSSL\fR\|(3), for example.
+.PP
+If the PKCS#12 structure does not have a password, then you must use the empty
+string "" for \fBoldpass\fR. Using \s-1NULL\s0 for \fBoldpass\fR will result in a
+\&\fBPKCS12_newpass()\fR failure.
+.PP
+If the wrong password is used for \fBoldpass\fR then the function will fail,
+with a \s-1MAC\s0 verification error. In rare cases the \s-1PKCS12\s0 structure does not
+contain a \s-1MAC:\s0 in this case it will usually fail with a decryption padding
+error.
.SH "RETURN VALUES"
.IX Header "RETURN VALUES"
\&\fBPKCS12_newpass()\fR returns 1 on success or 0 on failure. Applications can
@@ -217,16 +223,6 @@ the result to a new file.
\& return 0;
\& }
.Ve
-.SH "NOTES"
-.IX Header "NOTES"
-If the PKCS#12 structure does not have a password, then you must use the empty
-string "" for \fBoldpass\fR. Using \s-1NULL\s0 for \fBoldpass\fR will result in a
-\&\fBPKCS12_newpass()\fR failure.
-.PP
-If the wrong password is used for \fBoldpass\fR then the function will fail,
-with a \s-1MAC\s0 verification error. In rare cases the \s-1PKCS12\s0 structure does not
-contain a \s-1MAC:\s0 in this case it will usually fail with a decryption padding
-error.
.SH "BUGS"
.IX Header "BUGS"
The password format is a \s-1NULL\s0 terminated \s-1ASCII\s0 string which is converted to
@@ -238,9 +234,9 @@ this function.
\&\fBpassphrase\-encoding\fR\|(7)
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
-Copyright 2016\-2019 The OpenSSL Project Authors. All Rights Reserved.
+Copyright 2016\-2018 The OpenSSL Project Authors. All Rights Reserved.
.PP
-Licensed under the OpenSSL license (the \*(L"License\*(R"). You may not use
+Licensed under the Apache License 2.0 (the \*(L"License\*(R"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file \s-1LICENSE\s0 in the source distribution or at
<https://www.openssl.org/source/license.html>.