summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/man/des_read_pw.383
1 files changed, 53 insertions, 30 deletions
diff --git a/src/lib/libcrypto/man/des_read_pw.3 b/src/lib/libcrypto/man/des_read_pw.3
index 1f2fae984e..50c1390b35 100644
--- a/src/lib/libcrypto/man/des_read_pw.3
+++ b/src/lib/libcrypto/man/des_read_pw.3
@@ -1,29 +1,64 @@
1.\" $OpenBSD: des_read_pw.3,v 1.4 2016/12/08 21:48:50 jmc Exp $ 1.\" $OpenBSD: des_read_pw.3,v 1.5 2016/12/10 22:01:26 schwarze Exp $
2.\" OpenSSL doc/crypto/ui_compat.pod May 14 11:28:00 2006 +0000
3.\" OpenSSL doc/crypto/des.pod 2a9aca32 Oct 25 08:44:10 2001 +0000
2.\" 4.\"
3.Dd $Mdocdate: December 8 2016 $ 5.\" This file was written by Ulf Moeller <ulf@openssl.org> and
6.\" Richard Levitte <levitte@openssl.org>.
7.\" Copyright (c) 2000, 2001 The OpenSSL Project. All rights reserved.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\"
13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer.
15.\"
16.\" 2. Redistributions in binary form must reproduce the above copyright
17.\" notice, this list of conditions and the following disclaimer in
18.\" the documentation and/or other materials provided with the
19.\" distribution.
20.\"
21.\" 3. All advertising materials mentioning features or use of this
22.\" software must display the following acknowledgment:
23.\" "This product includes software developed by the OpenSSL Project
24.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
25.\"
26.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27.\" endorse or promote products derived from this software without
28.\" prior written permission. For written permission, please contact
29.\" openssl-core@openssl.org.
30.\"
31.\" 5. Products derived from this software may not be called "OpenSSL"
32.\" nor may "OpenSSL" appear in their names without prior written
33.\" permission of the OpenSSL Project.
34.\"
35.\" 6. Redistributions of any form whatsoever must retain the following
36.\" acknowledgment:
37.\" "This product includes software developed by the OpenSSL Project
38.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
39.\"
40.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
44.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\"
53.Dd $Mdocdate: December 10 2016 $
4.Dt DES_READ_PW 3 54.Dt DES_READ_PW 3
5.Os 55.Os
6.Sh NAME 56.Sh NAME
7.Nm des_read_password ,
8.Nm des_read_2passwords ,
9.Nm des_read_pw_string , 57.Nm des_read_pw_string ,
10.Nm des_read_pw 58.Nm des_read_pw
11.Nd compatibility user interface functions 59.Nd compatibility user interface functions
12.Sh SYNOPSIS 60.Sh SYNOPSIS
13.In openssl/des_old.h 61.In openssl/ui_compat.h
14.Ft int
15.Fo des_read_password
16.Fa "DES_cblock *key"
17.Fa "const char *prompt"
18.Fa "int verify"
19.Fc
20.Ft int
21.Fo des_read_2passwords
22.Fa "DES_cblock *key1"
23.Fa "DES_cblock *key2"
24.Fa "const char *prompt"
25.Fa "int verify"
26.Fc
27.Ft int 62.Ft int
28.Fo des_read_pw_string 63.Fo des_read_pw_string
29.Fa "char *buf" 64.Fa "char *buf"
@@ -78,18 +113,6 @@ is set.
78It is available in the MIT Kerberos library as well, 113It is available in the MIT Kerberos library as well,
79and is also available under the name 114and is also available under the name
80.Xr EVP_read_pw_string 3 . 115.Xr EVP_read_pw_string 3 .
81.Pp
82.Fn des_read_password
83calls
84.Fn des_read_pw
85and converts the password to a DES key by calling
86.Xr DES_string_to_key 3 ;
87.Fn des_read_2passwords
88operates in the same way as
89.Fn des_read_password
90except that it generates two keys by using the
91.Xr DES_string_to_2key 3
92function.
93.Sh SEE ALSO 116.Sh SEE ALSO
94.Xr UI_new 3 117.Xr UI_new 3
95.Sh AUTHORS 118.Sh AUTHORS