From 3de1ddf66395536ef35179a9ed07117046de6125 Mon Sep 17 00:00:00 2001 From: schwarze Date: Thu, 9 Dec 2021 18:45:45 +0000 Subject: [PATCH] document V_ASN1_NEG --- lib/libcrypto/man/ASN1_STRING_length.3 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/man/ASN1_STRING_length.3 b/lib/libcrypto/man/ASN1_STRING_length.3 index 83b6ffdd2fb..e7e78677fbe 100644 --- a/lib/libcrypto/man/ASN1_STRING_length.3 +++ b/lib/libcrypto/man/ASN1_STRING_length.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ASN1_STRING_length.3,v 1.27 2021/11/20 11:49:08 schwarze Exp $ +.\" $OpenBSD: ASN1_STRING_length.3,v 1.28 2021/12/09 18:45:45 schwarze Exp $ .\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 .\" .\" This file is a derived work. @@ -66,7 +66,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: November 20 2021 $ +.Dd $Mdocdate: December 9 2021 $ .Dt ASN1_STRING_LENGTH 3 .Os .Sh NAME @@ -276,6 +276,11 @@ should be freed using .Fn ASN1_STRING_type returns the type of .Fa x . +If the bit +.Dv V_ASN1_NEG +is set in the return value, +.Fa x +is an ASN.1 INTEGER or ENUMERATED object with a negative value. .Pp Almost all ASN.1 types are represented as .Vt ASN1_STRING @@ -382,7 +387,9 @@ or a negative number if an error occurred. .Pp .Fn ASN1_STRING_type returns an integer constant, for example -.Dv V_ASN1_OCTET_STRING . +.Dv V_ASN1_OCTET_STRING +or +.Dv V_ASN1_NEG_INTEGER . .Pp In some cases of failure of .Fn ASN1_STRING_dup , -- 2.20.1