diff options
author | schwarze <> | 2016-11-27 18:22:25 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-27 18:22:25 +0000 |
commit | 67128047df7652762716f09d2c4bdd5adfc569cf (patch) | |
tree | fd9f7111ef1be1b8400332abcbbc990f7c6c96db /src/lib | |
parent | 6cf1749ed30c650f6aae546c590e34471d66c70a (diff) | |
download | openbsd-67128047df7652762716f09d2c4bdd5adfc569cf.tar.gz openbsd-67128047df7652762716f09d2c4bdd5adfc569cf.tar.bz2 openbsd-67128047df7652762716f09d2c4bdd5adfc569cf.zip |
Add Copyright and license.
Document i2t_ASN1_OBJECT(3), from OpenSSL.
Merge more info about what NIDs are from OpenSSL.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/OBJ_nid2obj.3 | 77 |
1 files changed, 74 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/OBJ_nid2obj.3 b/src/lib/libcrypto/man/OBJ_nid2obj.3 index 22cc572323..6183831784 100644 --- a/src/lib/libcrypto/man/OBJ_nid2obj.3 +++ b/src/lib/libcrypto/man/OBJ_nid2obj.3 | |||
@@ -1,6 +1,55 @@ | |||
1 | .\" $OpenBSD: OBJ_nid2obj.3,v 1.3 2016/11/22 21:38:18 jmc Exp $ | 1 | .\" $OpenBSD: OBJ_nid2obj.3,v 1.4 2016/11/27 18:22:25 schwarze Exp $ |
2 | .\" OpenSSL c264592d May 14 11:28:00 2006 +0000 | ||
2 | .\" | 3 | .\" |
3 | .Dd $Mdocdate: November 22 2016 $ | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
5 | .\" Copyright (c) 2002, 2006, 2015, 2016 The OpenSSL Project. | ||
6 | .\" All rights reserved. | ||
7 | .\" | ||
8 | .\" Redistribution and use in source and binary forms, with or without | ||
9 | .\" modification, are permitted provided that the following conditions | ||
10 | .\" are met: | ||
11 | .\" | ||
12 | .\" 1. Redistributions of source code must retain the above copyright | ||
13 | .\" notice, this list of conditions and the following disclaimer. | ||
14 | .\" | ||
15 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
16 | .\" notice, this list of conditions and the following disclaimer in | ||
17 | .\" the documentation and/or other materials provided with the | ||
18 | .\" distribution. | ||
19 | .\" | ||
20 | .\" 3. All advertising materials mentioning features or use of this | ||
21 | .\" software must display the following acknowledgment: | ||
22 | .\" "This product includes software developed by the OpenSSL Project | ||
23 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
24 | .\" | ||
25 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
26 | .\" endorse or promote products derived from this software without | ||
27 | .\" prior written permission. For written permission, please contact | ||
28 | .\" openssl-core@openssl.org. | ||
29 | .\" | ||
30 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
31 | .\" nor may "OpenSSL" appear in their names without prior written | ||
32 | .\" permission of the OpenSSL Project. | ||
33 | .\" | ||
34 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
35 | .\" acknowledgment: | ||
36 | .\" "This product includes software developed by the OpenSSL Project | ||
37 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
38 | .\" | ||
39 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
40 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
41 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
42 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
43 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
44 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
45 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
46 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
47 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
48 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
51 | .\" | ||
52 | .Dd $Mdocdate: November 27 2016 $ | ||
4 | .Dt OBJ_NID2OBJ 3 | 53 | .Dt OBJ_NID2OBJ 3 |
5 | .Os | 54 | .Os |
6 | .Sh NAME | 55 | .Sh NAME |
@@ -16,7 +65,8 @@ | |||
16 | .Nm OBJ_cmp , | 65 | .Nm OBJ_cmp , |
17 | .Nm OBJ_dup , | 66 | .Nm OBJ_dup , |
18 | .Nm OBJ_create , | 67 | .Nm OBJ_create , |
19 | .Nm OBJ_cleanup | 68 | .Nm OBJ_cleanup , |
69 | .Nm i2t_ASN1_OBJECT | ||
20 | .Nd ASN.1 object utility functions | 70 | .Nd ASN.1 object utility functions |
21 | .Sh SYNOPSIS | 71 | .Sh SYNOPSIS |
22 | .In openssl/objects.h | 72 | .In openssl/objects.h |
@@ -77,11 +127,25 @@ | |||
77 | .Fc | 127 | .Fc |
78 | .Ft void | 128 | .Ft void |
79 | .Fn OBJ_cleanup void | 129 | .Fn OBJ_cleanup void |
130 | .In openssl/asn1.h | ||
131 | .Ft int | ||
132 | .Fo i2t_ASN1_OBJECT | ||
133 | .Fa "char *buf" | ||
134 | .Fa "int buf_len" | ||
135 | .Fa "ASN1_OBJECT *a" | ||
136 | .Fc | ||
80 | .Sh DESCRIPTION | 137 | .Sh DESCRIPTION |
81 | The ASN.1 object utility functions process | 138 | The ASN.1 object utility functions process |
82 | .Vt ASN1_OBJECT | 139 | .Vt ASN1_OBJECT |
83 | structures which are a representation of the ASN.1 OBJECT IDENTIFIER | 140 | structures which are a representation of the ASN.1 OBJECT IDENTIFIER |
84 | (OID) type. | 141 | (OID) type. |
142 | For convenience, OIDs are usually represented in source code as | ||
143 | numeric identifiers, or NIDs. | ||
144 | OpenSSL has an internal table of OIDs that are generated when the | ||
145 | library is built, and their corresponding NIDs are available as | ||
146 | defined constants. | ||
147 | For the functions below, application code should treat all returned | ||
148 | values \(em OIDs, NIDs, or names \(em as constants. | ||
85 | .Pp | 149 | .Pp |
86 | .Fn OBJ_nid2obj , | 150 | .Fn OBJ_nid2obj , |
87 | .Fn OBJ_nid2ln , | 151 | .Fn OBJ_nid2ln , |
@@ -146,6 +210,13 @@ If | |||
146 | is 0 and the object has a long or short name, then that will be used, | 210 | is 0 and the object has a long or short name, then that will be used, |
147 | otherwise the numerical form will be used. | 211 | otherwise the numerical form will be used. |
148 | .Pp | 212 | .Pp |
213 | .Fn i2t_ASN1_OBJECT | ||
214 | is the same as | ||
215 | .Fn OBJ_obj2txt | ||
216 | with | ||
217 | .Fa no_name | ||
218 | set to 0. | ||
219 | .Pp | ||
149 | .Fn OBJ_cmp | 220 | .Fn OBJ_cmp |
150 | compares | 221 | compares |
151 | .Fa a | 222 | .Fa a |