diff options
author | schwarze <> | 2021-11-24 13:18:08 +0000 |
---|---|---|
committer | schwarze <> | 2021-11-24 13:18:08 +0000 |
commit | a977eee8808a480c710235da95bd85328f98c689 (patch) | |
tree | 10fa0eb8482d1c705e7b102de1076a6d3204cd71 /src | |
parent | 423c3bdfa824af138953ed7df2ece97a5f5fbcab (diff) | |
download | openbsd-a977eee8808a480c710235da95bd85328f98c689.tar.gz openbsd-a977eee8808a480c710235da95bd85328f98c689.tar.bz2 openbsd-a977eee8808a480c710235da95bd85328f98c689.zip |
document ASN1_item_ndef_i2d(3)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_item_d2i.3 | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/ASN1_item_d2i.3 b/src/lib/libcrypto/man/ASN1_item_d2i.3 index 8f716f6f36..dbad1351a6 100644 --- a/src/lib/libcrypto/man/ASN1_item_d2i.3 +++ b/src/lib/libcrypto/man/ASN1_item_d2i.3 | |||
@@ -1,10 +1,10 @@ | |||
1 | .\" $OpenBSD: ASN1_item_d2i.3,v 1.12 2021/11/15 11:51:09 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_item_d2i.3,v 1.13 2021/11/24 13:18:08 schwarze Exp $ |
2 | .\" OpenSSL doc/man3/d2i_X509.pod b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL doc/man3/d2i_X509.pod b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
5 | .\" The changes are covered by the following Copyright and license: | 5 | .\" The changes are covered by the following Copyright and license: |
6 | .\" | 6 | .\" |
7 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 7 | .\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org> |
8 | .\" | 8 | .\" |
9 | .\" Permission to use, copy, modify, and distribute this software for any | 9 | .\" Permission to use, copy, modify, and distribute this software for any |
10 | .\" purpose with or without fee is hereby granted, provided that the above | 10 | .\" purpose with or without fee is hereby granted, provided that the above |
@@ -65,7 +65,7 @@ | |||
65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
67 | .\" | 67 | .\" |
68 | .Dd $Mdocdate: November 15 2021 $ | 68 | .Dd $Mdocdate: November 24 2021 $ |
69 | .Dt ASN1_ITEM_D2I 3 | 69 | .Dt ASN1_ITEM_D2I 3 |
70 | .Os | 70 | .Os |
71 | .Sh NAME | 71 | .Sh NAME |
@@ -76,6 +76,7 @@ | |||
76 | .Nm ASN1_item_i2d , | 76 | .Nm ASN1_item_i2d , |
77 | .Nm ASN1_item_i2d_bio , | 77 | .Nm ASN1_item_i2d_bio , |
78 | .Nm ASN1_item_i2d_fp , | 78 | .Nm ASN1_item_i2d_fp , |
79 | .Nm ASN1_item_ndef_i2d , | ||
79 | .Nm i2d_ASN1_TYPE , | 80 | .Nm i2d_ASN1_TYPE , |
80 | .Nm ASN1_item_dup , | 81 | .Nm ASN1_item_dup , |
81 | .Nm ASN1_item_print | 82 | .Nm ASN1_item_print |
@@ -126,6 +127,12 @@ | |||
126 | .Fa "void *val_in" | 127 | .Fa "void *val_in" |
127 | .Fc | 128 | .Fc |
128 | .Ft int | 129 | .Ft int |
130 | .Fo ASN1_item_ndef_i2d | ||
131 | .Fa "ASN1_VALUE *val_in" | ||
132 | .Fa "unsigned char **der_out" | ||
133 | .Fa "const ASN1_ITEM *it" | ||
134 | .Fc | ||
135 | .Ft int | ||
129 | .Fo i2d_ASN1_TYPE | 136 | .Fo i2d_ASN1_TYPE |
130 | .Fa "ASN1_TYPE *val_in" | 137 | .Fa "ASN1_TYPE *val_in" |
131 | .Fa "unsigned char **der_out" | 138 | .Fa "unsigned char **der_out" |
@@ -262,6 +269,12 @@ or | |||
262 | .Vt FILE , | 269 | .Vt FILE , |
263 | respectively. | 270 | respectively. |
264 | .Pp | 271 | .Pp |
272 | .Fn ASN1_item_ndef_i2d | ||
273 | is similar to | ||
274 | .Fn ASN1_item_i2d | ||
275 | except that it encodes using BER rather than DER, | ||
276 | using the indefinite length form where appropriate. | ||
277 | .Pp | ||
265 | .Fn i2d_ASN1_TYPE | 278 | .Fn i2d_ASN1_TYPE |
266 | is similar to | 279 | is similar to |
267 | .Fn ASN1_item_i2d | 280 | .Fn ASN1_item_i2d |
@@ -295,7 +308,8 @@ If an error occurs, | |||
295 | .Dv NULL | 308 | .Dv NULL |
296 | is returned. | 309 | is returned. |
297 | .Pp | 310 | .Pp |
298 | .Fn ASN1_item_i2d | 311 | .Fn ASN1_item_i2d , |
312 | .Fn ASN1_item_ndef_i2d , | ||
299 | and | 313 | and |
300 | .Fn i2d_ASN1_TYPE | 314 | .Fn i2d_ASN1_TYPE |
301 | return the number of bytes written | 315 | return the number of bytes written |
@@ -386,6 +400,10 @@ and | |||
386 | first appeared in OpenSSL 0.9.7 and have been available since | 400 | first appeared in OpenSSL 0.9.7 and have been available since |
387 | .Ox 3.2 . | 401 | .Ox 3.2 . |
388 | .Pp | 402 | .Pp |
403 | .Fn ASN1_item_ndef_i2d | ||
404 | first appeared in OpenSSL 0.9.8 and has been available since | ||
405 | .Ox 4.5 . | ||
406 | .Pp | ||
389 | .Fn ASN1_item_print | 407 | .Fn ASN1_item_print |
390 | first appeared in OpenSSL 1.0.0 and has been available since | 408 | first appeared in OpenSSL 1.0.0 and has been available since |
391 | .Ox 4.9 . | 409 | .Ox 4.9 . |