diff options
author | schwarze <> | 2021-11-22 14:00:27 +0000 |
---|---|---|
committer | schwarze <> | 2021-11-22 14:00:27 +0000 |
commit | 9e3276bd16eb5d34b7af1bef36f45317cbfb0a16 (patch) | |
tree | 646784a456a596dddfdc079c29dc7d910c5a8e3b /src | |
parent | 4edfc9271874010ee9d11c3271d63fd7403731aa (diff) | |
download | openbsd-9e3276bd16eb5d34b7af1bef36f45317cbfb0a16.tar.gz openbsd-9e3276bd16eb5d34b7af1bef36f45317cbfb0a16.tar.bz2 openbsd-9e3276bd16eb5d34b7af1bef36f45317cbfb0a16.zip |
new manual page a2d_ASN1_OBJECT(3);
while here, add a few STANDARDS references
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_OBJECT_new.3 | 13 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/a2d_ASN1_OBJECT.3 | 83 | ||||
-rw-r--r-- | src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 | 11 |
4 files changed, 106 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/ASN1_OBJECT_new.3 b/src/lib/libcrypto/man/ASN1_OBJECT_new.3 index 671631094b..ff98f2491a 100644 --- a/src/lib/libcrypto/man/ASN1_OBJECT_new.3 +++ b/src/lib/libcrypto/man/ASN1_OBJECT_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_OBJECT_new.3,v 1.12 2021/11/22 12:06:51 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_OBJECT_new.3,v 1.13 2021/11/22 14:00:27 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 99d63d4 Mar 19 12:28:58 2016 -0400 | 2 | .\" full merge up to: OpenSSL 99d63d4 Mar 19 12:28:58 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -179,9 +179,20 @@ the following diagnostic can be retrieved in addition to the above: | |||
179 | Memory allocation failed. | 179 | Memory allocation failed. |
180 | .El | 180 | .El |
181 | .Sh SEE ALSO | 181 | .Sh SEE ALSO |
182 | .Xr a2d_ASN1_OBJECT 3 , | ||
182 | .Xr ASN1_TYPE_get 3 , | 183 | .Xr ASN1_TYPE_get 3 , |
183 | .Xr d2i_ASN1_OBJECT 3 , | 184 | .Xr d2i_ASN1_OBJECT 3 , |
184 | .Xr OBJ_nid2obj 3 | 185 | .Xr OBJ_nid2obj 3 |
186 | .Sh STANDARDS | ||
187 | ITU-T Recommendation X.208, also known as ISO/IEC 8824-1: | ||
188 | Specification of Abstract Syntax Notation One (ASN.1), | ||
189 | section 28: Notation for the object identifier type | ||
190 | .Pp | ||
191 | ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: | ||
192 | Information technology - ASN.1 encoding rules: | ||
193 | Specification of Basic Encoding Rules (BER), Canonical Encoding | ||
194 | Rules (CER) and Distinguished Encoding Rules (DER), | ||
195 | section 8.19: Encoding of an object identifier value | ||
185 | .Sh HISTORY | 196 | .Sh HISTORY |
186 | .Fn ASN1_OBJECT_new | 197 | .Fn ASN1_OBJECT_new |
187 | and | 198 | and |
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 10f841bd8d..4a8536747f 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.218 2021/11/21 15:11:01 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.219 2021/11/22 14:00:27 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -367,6 +367,7 @@ MAN= \ | |||
367 | X509at_add1_attr.3 \ | 367 | X509at_add1_attr.3 \ |
368 | X509at_get_attr.3 \ | 368 | X509at_get_attr.3 \ |
369 | X509v3_get_ext_by_NID.3 \ | 369 | X509v3_get_ext_by_NID.3 \ |
370 | a2d_ASN1_OBJECT.3 \ | ||
370 | crypto.3 \ | 371 | crypto.3 \ |
371 | d2i_ASN1_BOOLEAN.3 \ | 372 | d2i_ASN1_BOOLEAN.3 \ |
372 | d2i_ASN1_NULL.3 \ | 373 | d2i_ASN1_NULL.3 \ |
diff --git a/src/lib/libcrypto/man/a2d_ASN1_OBJECT.3 b/src/lib/libcrypto/man/a2d_ASN1_OBJECT.3 new file mode 100644 index 0000000000..8cf6489614 --- /dev/null +++ b/src/lib/libcrypto/man/a2d_ASN1_OBJECT.3 | |||
@@ -0,0 +1,83 @@ | |||
1 | .\" $OpenBSD: a2d_ASN1_OBJECT.3,v 1.1 2021/11/22 14:00:27 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | ||
4 | .\" | ||
5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
7 | .\" copyright notice and this permission notice appear in all copies. | ||
8 | .\" | ||
9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | .\" | ||
17 | .Dd $Mdocdate: November 22 2021 $ | ||
18 | .Dt A2D_ASN1_OBJECT 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm a2d_ASN1_OBJECT | ||
22 | .Nd DER content octets of an ASN.1 object identifier | ||
23 | .Sh SYNOPSIS | ||
24 | .Ft int | ||
25 | .Fo a2d_ASN1_OBJECT | ||
26 | .Fa "unsigned char *der_out" | ||
27 | .Fa "int olen" | ||
28 | .Fa "const char *val_in" | ||
29 | .Fa "int ilen" | ||
30 | .Fc | ||
31 | .Sh DESCRIPTION | ||
32 | .Fn a2d_ASN1_OBJECT | ||
33 | accepts an ASCII string | ||
34 | .Fa val_in | ||
35 | of | ||
36 | .Fa ilen | ||
37 | bytes and interprets it as the numerical form of an ASN.1 object identifier. | ||
38 | It writes the content octets of the DER encoding of the object identifier | ||
39 | to the buffer | ||
40 | .Fa der_out | ||
41 | which is | ||
42 | .Fa olen | ||
43 | bytes long. | ||
44 | The identifier and length octets of the DER encoding are not written. | ||
45 | .Pp | ||
46 | If | ||
47 | .Fa ilen | ||
48 | is \-1, the | ||
49 | .Xr strlen 3 | ||
50 | of | ||
51 | .Fa val_in | ||
52 | is used instead. | ||
53 | .Pp | ||
54 | If | ||
55 | .Fa der_out | ||
56 | is a | ||
57 | .Dv NULL | ||
58 | pointer, writing the content objects is skipped | ||
59 | and only the return value is calculated. | ||
60 | .Sh RETURN VALUES | ||
61 | .Fn a2d_ASN1_OBJECT | ||
62 | returns the number of content octets that were or would be written or 0 if | ||
63 | .Fa ilen | ||
64 | is 0, if | ||
65 | .Fa val_in | ||
66 | is not a valid representation of an object identfier, | ||
67 | if memory allocation fails, or if the number of content octets | ||
68 | would be larger than | ||
69 | .Fa olen . | ||
70 | .Sh SEE ALSO | ||
71 | .Xr ASN1_OBJECT_new 3 , | ||
72 | .Xr i2d_ASN1_OBJECT 3 , | ||
73 | .Xr OBJ_create 3 | ||
74 | .Sh STANDARDS | ||
75 | ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: | ||
76 | Information technology - ASN.1 encoding rules: | ||
77 | Specification of Basic Encoding Rules (BER), Canonical Encoding | ||
78 | Rules (CER) and Distinguished Encoding Rules (DER), | ||
79 | section 8.19: Encoding of an object identifier value | ||
80 | .Sh HISTORY | ||
81 | .Fn a2d_ASN1_OBJECT | ||
82 | first appeared in SSLeay 0.8.0 and has been available since | ||
83 | .Ox 2.4 . | ||
diff --git a/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 b/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 index 09a17ced7c..bcd7e18791 100644 --- a/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 +++ b/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: d2i_ASN1_OBJECT.3,v 1.9 2018/04/25 15:17:52 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_ASN1_OBJECT.3,v 1.10 2021/11/22 14:00:27 schwarze Exp $ |
2 | .\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400 | 2 | .\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | 4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> |
@@ -15,7 +15,7 @@ | |||
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: April 25 2018 $ | 18 | .Dd $Mdocdate: November 22 2021 $ |
19 | .Dt D2I_ASN1_OBJECT 3 | 19 | .Dt D2I_ASN1_OBJECT 3 |
20 | .Os | 20 | .Os |
21 | .Sh NAME | 21 | .Sh NAME |
@@ -71,9 +71,16 @@ if an error occurs. | |||
71 | returns the number of bytes successfully encoded | 71 | returns the number of bytes successfully encoded |
72 | or a value <= 0 if an error occurs. | 72 | or a value <= 0 if an error occurs. |
73 | .Sh SEE ALSO | 73 | .Sh SEE ALSO |
74 | .Xr a2d_ASN1_OBJECT 3 , | ||
74 | .Xr ASN1_item_d2i 3 , | 75 | .Xr ASN1_item_d2i 3 , |
75 | .Xr ASN1_OBJECT_new 3 , | 76 | .Xr ASN1_OBJECT_new 3 , |
76 | .Xr OBJ_nid2obj 3 | 77 | .Xr OBJ_nid2obj 3 |
78 | .Sh STANDARDS | ||
79 | ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: | ||
80 | Information technology - ASN.1 encoding rules: | ||
81 | Specification of Basic Encoding Rules (BER), Canonical Encoding | ||
82 | Rules (CER) and Distinguished Encoding Rules (DER), | ||
83 | section 8.19: Encoding of an object identifier value | ||
77 | .Sh HISTORY | 84 | .Sh HISTORY |
78 | .Fn d2i_ASN1_OBJECT | 85 | .Fn d2i_ASN1_OBJECT |
79 | and | 86 | and |