diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/d2i_X509_NAME.3 | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/d2i_X509_NAME.3 b/src/lib/libcrypto/man/d2i_X509_NAME.3 index f5dc62fb8e..3bca5c9bff 100644 --- a/src/lib/libcrypto/man/d2i_X509_NAME.3 +++ b/src/lib/libcrypto/man/d2i_X509_NAME.3 | |||
@@ -1,7 +1,7 @@ | |||
1 | .\" $OpenBSD: d2i_X509_NAME.3,v 1.8 2016/12/28 14:33:34 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509_NAME.3,v 1.9 2017/01/07 01:25:14 schwarze Exp $ |
2 | .\" OpenSSL d900a015 Oct 8 14:40:42 2015 +0200 | 2 | .\" OpenSSL d900a015 Oct 8 14:40:42 2015 +0200 |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 4 | .\" Copyright (c) 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> |
5 | .\" | 5 | .\" |
6 | .\" Permission to use, copy, modify, and distribute this software for any | 6 | .\" Permission to use, copy, modify, and distribute this software for any |
7 | .\" purpose with or without fee is hereby granted, provided that the above | 7 | .\" purpose with or without fee is hereby granted, provided that the above |
@@ -15,13 +15,14 @@ | |||
15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | .\" | 17 | .\" |
18 | .Dd $Mdocdate: December 28 2016 $ | 18 | .Dd $Mdocdate: January 7 2017 $ |
19 | .Dt D2I_X509_NAME 3 | 19 | .Dt D2I_X509_NAME 3 |
20 | .Os | 20 | .Os |
21 | .Sh NAME | 21 | .Sh NAME |
22 | .Nm d2i_X509_NAME , | 22 | .Nm d2i_X509_NAME , |
23 | .Nm i2d_X509_NAME , | 23 | .Nm i2d_X509_NAME , |
24 | .Nm X509_NAME_dup , | 24 | .Nm X509_NAME_dup , |
25 | .Nm X509_NAME_hash , | ||
25 | .Nm d2i_X509_NAME_ENTRY , | 26 | .Nm d2i_X509_NAME_ENTRY , |
26 | .Nm i2d_X509_NAME_ENTRY , | 27 | .Nm i2d_X509_NAME_ENTRY , |
27 | .Nm X509_NAME_ENTRY_dup | 28 | .Nm X509_NAME_ENTRY_dup |
@@ -46,6 +47,10 @@ | |||
46 | .Fo X509_NAME_dup | 47 | .Fo X509_NAME_dup |
47 | .Fa "X509_NAME *val_in" | 48 | .Fa "X509_NAME *val_in" |
48 | .Fc | 49 | .Fc |
50 | .Ft unsigned long | ||
51 | .Fo X509_NAME_hash | ||
52 | .Fa "X509_NAME *val_in" | ||
53 | .Fc | ||
49 | .Ft X509_NAME_ENTRY * | 54 | .Ft X509_NAME_ENTRY * |
50 | .Fo d2i_X509_NAME_ENTRY | 55 | .Fo d2i_X509_NAME_ENTRY |
51 | .Fa "X509_NAME_ENTRY **val_out" | 56 | .Fa "X509_NAME_ENTRY **val_out" |
@@ -83,6 +88,15 @@ by calling | |||
83 | and | 88 | and |
84 | .Fn d2i_X509_NAME . | 89 | .Fn d2i_X509_NAME . |
85 | .Pp | 90 | .Pp |
91 | .Fn X509_NAME_hash | ||
92 | calculates an | ||
93 | .Xr SHA1 3 | ||
94 | hash of the DER-encoded form of the name | ||
95 | .Pf * Fa val_in . | ||
96 | It is for example used by | ||
97 | .Xr X509_LOOKUP_hash_dir 3 | ||
98 | to locate certificate files in the file system. | ||
99 | .Pp | ||
86 | .Fn d2i_X509_NAME_ENTRY | 100 | .Fn d2i_X509_NAME_ENTRY |
87 | and | 101 | and |
88 | .Fn i2d_X509_NAME_ENTRY | 102 | .Fn i2d_X509_NAME_ENTRY |
@@ -107,6 +121,9 @@ object or | |||
107 | .Dv NULL | 121 | .Dv NULL |
108 | if an error occurs. | 122 | if an error occurs. |
109 | .Pp | 123 | .Pp |
124 | .Fn X509_NAME_hash | ||
125 | returns the hash value or 0 if an error occurs. | ||
126 | .Pp | ||
110 | .Fn d2i_X509_NAME_ENTRY | 127 | .Fn d2i_X509_NAME_ENTRY |
111 | and | 128 | and |
112 | .Fn X509_NAME_ENTRY_dup | 129 | .Fn X509_NAME_ENTRY_dup |