summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2017-01-07 01:25:14 +0000
committerschwarze <>2017-01-07 01:25:14 +0000
commit8ab50eb501eb6bde2031153606892adcf116b569 (patch)
tree631925fd208951d988a14cfe7d5a6e1bc56a35b8 /src
parentf5fdacf37a917aa2155fa1dd3e78ca4ce64e60d7 (diff)
downloadopenbsd-8ab50eb501eb6bde2031153606892adcf116b569.tar.gz
openbsd-8ab50eb501eb6bde2031153606892adcf116b569.tar.bz2
openbsd-8ab50eb501eb6bde2031153606892adcf116b569.zip
Document X509_NAME_hash(3), listed in <openssl/x509.h>;
jmc@ reported that X509_LOOKUP_hash_dir(3) references it. Even though OpenSSL does not document it, given that it is used for file names that users have to create, it is sufficiently exposed to users to be worth documenting.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/d2i_X509_NAME.323
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
83and 88and
84.Fn d2i_X509_NAME . 89.Fn d2i_X509_NAME .
85.Pp 90.Pp
91.Fn X509_NAME_hash
92calculates an
93.Xr SHA1 3
94hash of the DER-encoded form of the name
95.Pf * Fa val_in .
96It is for example used by
97.Xr X509_LOOKUP_hash_dir 3
98to locate certificate files in the file system.
99.Pp
86.Fn d2i_X509_NAME_ENTRY 100.Fn d2i_X509_NAME_ENTRY
87and 101and
88.Fn i2d_X509_NAME_ENTRY 102.Fn i2d_X509_NAME_ENTRY
@@ -107,6 +121,9 @@ object or
107.Dv NULL 121.Dv NULL
108if an error occurs. 122if an error occurs.
109.Pp 123.Pp
124.Fn X509_NAME_hash
125returns the hash value or 0 if an error occurs.
126.Pp
110.Fn d2i_X509_NAME_ENTRY 127.Fn d2i_X509_NAME_ENTRY
111and 128and
112.Fn X509_NAME_ENTRY_dup 129.Fn X509_NAME_ENTRY_dup