summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2017-01-05 23:13:07 +0000
committerschwarze <>2017-01-05 23:13:07 +0000
commit39e3cc9533418d593f0a48b5042ec9bf28515508 (patch)
tree1462dc05fe4e4321bc40dbfd11c81c18a6105e9e
parentae8f0c69c912ed337d2c865c8c3ea625f965ceb9 (diff)
downloadopenbsd-39e3cc9533418d593f0a48b5042ec9bf28515508.tar.gz
openbsd-39e3cc9533418d593f0a48b5042ec9bf28515508.tar.bz2
openbsd-39e3cc9533418d593f0a48b5042ec9bf28515508.zip
Also document the weird d2i_ASN1_UINTEGER(3), listed in <openssl/asn1.h>
and in OpenSSL doc/man3/d2i_X509.pod (with wrong prototype).
-rw-r--r--src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.317
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 b/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
index 4ea67412d9..1f76e5fdc1 100644
--- a/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
+++ b/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: d2i_ASN1_OCTET_STRING.3,v 1.1 2017/01/05 22:38:04 schwarze Exp $ 1.\" $OpenBSD: d2i_ASN1_OCTET_STRING.3,v 1.2 2017/01/05 23:13:07 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -24,6 +24,7 @@
24.Nm i2d_ASN1_BIT_STRING , 24.Nm i2d_ASN1_BIT_STRING ,
25.Nm d2i_ASN1_INTEGER , 25.Nm d2i_ASN1_INTEGER ,
26.Nm i2d_ASN1_INTEGER , 26.Nm i2d_ASN1_INTEGER ,
27.Nm d2i_ASN1_UINTEGER ,
27.Nm d2i_ASN1_ENUMERATED , 28.Nm d2i_ASN1_ENUMERATED ,
28.Nm i2d_ASN1_ENUMERATED , 29.Nm i2d_ASN1_ENUMERATED ,
29.Nm d2i_ASN1_UTF8STRING , 30.Nm d2i_ASN1_UTF8STRING ,
@@ -90,6 +91,12 @@
90.Fa "ASN1_INTEGER *val_in" 91.Fa "ASN1_INTEGER *val_in"
91.Fa "unsigned char **der_out" 92.Fa "unsigned char **der_out"
92.Fc 93.Fc
94.Ft ASN1_INTEGER *
95.Fo d2i_ASN1_UINTEGER
96.Fa "ASN1_INTEGER **val_out"
97.Fa "const unsigned char **der_in"
98.Fa "long length"
99.Fc
93.Ft ASN1_ENUMERATED * 100.Ft ASN1_ENUMERATED *
94.Fo d2i_ASN1_ENUMERATED 101.Fo d2i_ASN1_ENUMERATED
95.Fa "ASN1_ENUMERATED **val_out" 102.Fa "ASN1_ENUMERATED **val_out"
@@ -344,6 +351,14 @@ and also used for certificate revocation lists, see
344.Xr X509_CRL_INFO_new 3 . 351.Xr X509_CRL_INFO_new 3 .
345When decoding, it accepts either GeneralizedTime or UTCTime. 352When decoding, it accepts either GeneralizedTime or UTCTime.
346When encoding, it writes out the time type that is actually passed in. 353When encoding, it writes out the time type that is actually passed in.
354.Pp
355.Fn d2i_ASN1_UINTEGER
356is similar to
357.Fn d2i_ASN1_INTEGER
358except that it ignores the sign bit in the BER encoding and treats
359all integers as positive.
360It helps to process BER input produced by broken software
361that neglects adding a leading NUL content byte where required.
347.Sh RETURN VALUES 362.Sh RETURN VALUES
348The 363The
349.Fn d2i_* 364.Fn d2i_*