diff options
| author | schwarze <> | 2017-01-05 23:13:07 +0000 |
|---|---|---|
| committer | schwarze <> | 2017-01-05 23:13:07 +0000 |
| commit | c5a69f36cea92724d80f5783e55132d036ff4ad9 (patch) | |
| tree | 1462dc05fe4e4321bc40dbfd11c81c18a6105e9e /src | |
| parent | 3f7cf337812da741d7c37617614645b4f176ff61 (diff) | |
| download | openbsd-c5a69f36cea92724d80f5783e55132d036ff4ad9.tar.gz openbsd-c5a69f36cea92724d80f5783e55132d036ff4ad9.tar.bz2 openbsd-c5a69f36cea92724d80f5783e55132d036ff4ad9.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).
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 | 17 |
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 . |
| 345 | When decoding, it accepts either GeneralizedTime or UTCTime. | 352 | When decoding, it accepts either GeneralizedTime or UTCTime. |
| 346 | When encoding, it writes out the time type that is actually passed in. | 353 | When encoding, it writes out the time type that is actually passed in. |
| 354 | .Pp | ||
| 355 | .Fn d2i_ASN1_UINTEGER | ||
| 356 | is similar to | ||
| 357 | .Fn d2i_ASN1_INTEGER | ||
| 358 | except that it ignores the sign bit in the BER encoding and treats | ||
| 359 | all integers as positive. | ||
| 360 | It helps to process BER input produced by broken software | ||
| 361 | that neglects adding a leading NUL content byte where required. | ||
| 347 | .Sh RETURN VALUES | 362 | .Sh RETURN VALUES |
| 348 | The | 363 | The |
| 349 | .Fn d2i_* | 364 | .Fn d2i_* |
