summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2016-12-14 16:18:31 +0000
committerschwarze <>2016-12-14 16:18:31 +0000
commit10db0a3503dce39e93c8364a7782c59478e665de (patch)
tree0d295b4438909469750fbb0a72c60b393fa2f430 /src/lib
parent32b4ff922ae5e9fd5df5a4cdc8faae725fcb0681 (diff)
downloadopenbsd-10db0a3503dce39e93c8364a7782c59478e665de.tar.gz
openbsd-10db0a3503dce39e93c8364a7782c59478e665de.tar.bz2
openbsd-10db0a3503dce39e93c8364a7782c59478e665de.zip
Complete rewrite to improve clarity.
Add some cross references and STANDARDS.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/d2i_X509_NAME.3110
1 files changed, 49 insertions, 61 deletions
diff --git a/src/lib/libcrypto/man/d2i_X509_NAME.3 b/src/lib/libcrypto/man/d2i_X509_NAME.3
index 2817a7f3ce..1f1836abaf 100644
--- a/src/lib/libcrypto/man/d2i_X509_NAME.3
+++ b/src/lib/libcrypto/man/d2i_X509_NAME.3
@@ -1,83 +1,71 @@
1.\" $OpenBSD: d2i_X509_NAME.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ 1.\" $OpenBSD: d2i_X509_NAME.3,v 1.5 2016/12/14 16:18:31 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.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
5.\" Copyright (c) 2002, 2015 The OpenSSL Project. All rights reserved.
6.\" 5.\"
7.\" Redistribution and use in source and binary forms, with or without 6.\" Permission to use, copy, modify, and distribute this software for any
8.\" modification, are permitted provided that the following conditions 7.\" purpose with or without fee is hereby granted, provided that the above
9.\" are met: 8.\" copyright notice and this permission notice appear in all copies.
10.\" 9.\"
11.\" 1. Redistributions of source code must retain the above copyright 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12.\" notice, this list of conditions and the following disclaimer. 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13.\" 17.\"
14.\" 2. Redistributions in binary form must reproduce the above copyright 18.Dd $Mdocdate: December 14 2016 $
15.\" notice, this list of conditions and the following disclaimer in
16.\" the documentation and/or other materials provided with the
17.\" distribution.
18.\"
19.\" 3. All advertising materials mentioning features or use of this
20.\" software must display the following acknowledgment:
21.\" "This product includes software developed by the OpenSSL Project
22.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23.\"
24.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25.\" endorse or promote products derived from this software without
26.\" prior written permission. For written permission, please contact
27.\" openssl-core@openssl.org.
28.\"
29.\" 5. Products derived from this software may not be called "OpenSSL"
30.\" nor may "OpenSSL" appear in their names without prior written
31.\" permission of the OpenSSL Project.
32.\"
33.\" 6. Redistributions of any form whatsoever must retain the following
34.\" acknowledgment:
35.\" "This product includes software developed by the OpenSSL Project
36.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37.\"
38.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
42.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\"
51.Dd $Mdocdate: December 8 2016 $
52.Dt D2I_X509_NAME 3 19.Dt D2I_X509_NAME 3
53.Os 20.Os
54.Sh NAME 21.Sh NAME
55.Nm d2i_X509_NAME , 22.Nm d2i_X509_NAME ,
56.Nm i2d_X509_NAME 23.Nm i2d_X509_NAME
57.Nd X509_NAME encoding functions 24.\" In the following line, "X.501" and "Name" are not typos.
25.\" The "Name" type is defined in X.501, not in X.509.
26.\" The type in called "Name" with capital "N", not "name".
27.Nd decode and encode X.501 Name objects
58.Sh SYNOPSIS 28.Sh SYNOPSIS
59.In openssl/x509.h 29.In openssl/x509.h
60.Ft X509_NAME * 30.Ft X509_NAME *
61.Fo d2i_X509_NAME 31.Fo d2i_X509_NAME
62.Fa "X509_NAME **a" 32.Fa "X509_NAME **name"
63.Fa "unsigned char **pp" 33.Fa "unsigned char **in"
64.Fa "long length" 34.Fa "long length"
65.Fc 35.Fc
66.Ft int 36.Ft int
67.Fo i2d_X509_NAME 37.Fo i2d_X509_NAME
68.Fa "X509_NAME *a" 38.Fa "X509_NAME *name"
69.Fa "unsigned char **pp" 39.Fa "unsigned char **out"
70.Fc 40.Fc
71.Sh DESCRIPTION 41.Sh DESCRIPTION
72These functions decode and encode an 42.Fn d2i_X509_NAME
43decodes
44.Fa length
45bytes of the DER-encoded string
46.Pf * Fa in
47and stores the resulting Name object in
48.Pf * Fa name .
49.Pp
50.Fn i2d_X509_NAME
51encodes
52.Fa name
53into DER format and stores the result to
54.Pf * Fa out .
55.Pp
56For details of the behaviour, see
57.Xr d2i_X509 3 .
58.Pp
59Regarding
73.Vt X509_NAME 60.Vt X509_NAME
74structure, which is the same as the 61objects, see
75.Sy Name 62.Xr X509_NAME_new 3 .
76type defined in RFC 2459 (and elsewhere) and used, for example, in
77certificate subject and issuer names.
78They otherwise behave in a way similar to
79.Xr d2i_X509 3
80and
81.Xr i2d_X509 3 .
82.Sh SEE ALSO 63.Sh SEE ALSO
83.Xr d2i_X509 3 64.Xr d2i_X509 3 ,
65.Xr X509_NAME_new 3 ,
66.Xr X509_NAME_print_ex 3
67.Sh STANDARDS
68ITU-T Recommendation X.690, also known as ISO/IEC 8825-1:
69Information technology - ASN.1 encoding rules:
70Specification of Basic Encoding Rules (BER), Canonical Encoding
71Rules (CER) and Distinguished Encoding Rules (DER).