summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-07-28 05:53:10 +0000
committertb <>2023-07-28 05:53:10 +0000
commit783244ed4a6bd90016acb876b9752acd0db924be (patch)
tree7056b43bb35ddcbccf5400faccc10cc18092c407 /src
parent6b059a8c85aa123483e219ee531a9f8aa940d150 (diff)
downloadopenbsd-783244ed4a6bd90016acb876b9752acd0db924be.tar.gz
openbsd-783244ed4a6bd90016acb876b9752acd0db924be.tar.bz2
openbsd-783244ed4a6bd90016acb876b9752acd0db924be.zip
Remove ASN1_BIT_STRING_set doco
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/ASN1_BIT_STRING_set.344
1 files changed, 2 insertions, 42 deletions
diff --git a/src/lib/libcrypto/man/ASN1_BIT_STRING_set.3 b/src/lib/libcrypto/man/ASN1_BIT_STRING_set.3
index db1ba6bf9b..5d863d19df 100644
--- a/src/lib/libcrypto/man/ASN1_BIT_STRING_set.3
+++ b/src/lib/libcrypto/man/ASN1_BIT_STRING_set.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ASN1_BIT_STRING_set.3,v 1.3 2023/07/28 05:49:53 tb Exp $ 1.\" $OpenBSD: ASN1_BIT_STRING_set.3,v 1.4 2023/07/28 05:53:10 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -20,8 +20,7 @@
20.Sh NAME 20.Sh NAME
21.Nm ASN1_BIT_STRING_set , 21.Nm ASN1_BIT_STRING_set ,
22.Nm ASN1_BIT_STRING_set_bit , 22.Nm ASN1_BIT_STRING_set_bit ,
23.Nm ASN1_BIT_STRING_get_bit , 23.Nm ASN1_BIT_STRING_get_bit
24.Nm ASN1_BIT_STRING_check
25.Nd ASN.1 BIT STRING accessors 24.Nd ASN.1 BIT STRING accessors
26.Sh SYNOPSIS 25.Sh SYNOPSIS
27.In openssl/asn1.h 26.In openssl/asn1.h
@@ -42,12 +41,6 @@
42.Fa "ASN1_BIT_STRING *bitstr" 41.Fa "ASN1_BIT_STRING *bitstr"
43.Fa "int bitnumber" 42.Fa "int bitnumber"
44.Fc 43.Fc
45.Ft int
46.Fo ASN1_BIT_STRING_check
47.Fa "ASN1_BIT_STRING *bitstr"
48.Fa "const unsigned char *goodbits"
49.Fa "int goodbits_len"
50.Fc
51.Sh DESCRIPTION 44.Sh DESCRIPTION
52.Fn ASN1_BIT_STRING_set 45.Fn ASN1_BIT_STRING_set
53sets the length attribute of 46sets the length attribute of
@@ -99,21 +92,6 @@ checks that the bit with the given
99.Fa bitnumber 92.Fa bitnumber
100is set in 93is set in
101.Fa bitstr . 94.Fa bitstr .
102.Pp
103.Fn ASN1_BIT_STRING_check
104checks that all bits set in
105.Fa bitstr
106are also set in
107.Fa goodbits .
108Expressed symbolically, it evaluates:
109.Pp
110.D1 Po Fa bitstr No & Pf \(ti Fa goodbits Pc == 0
111.Pp
112The buffer
113.Fa goodbits
114is expected to contain
115.Fa goodbits_len
116bytes.
117.Sh RETURN VALUES 95.Sh RETURN VALUES
118.Fn ASN1_BIT_STRING_set 96.Fn ASN1_BIT_STRING_set
119returns 1 on success or 0 if memory allocation fails or if 97returns 1 on success or 0 if memory allocation fails or if
@@ -145,20 +123,6 @@ if
145points beyond the last data byte in 123points beyond the last data byte in
146.Fa bitstr , 124.Fa bitstr ,
147or if the requested bit is not set. 125or if the requested bit is not set.
148.Pp
149.Fn ASN1_BIT_STRING_check
150returns 0
151if at least one bit is set in
152.Fa bitstr
153that is not set in
154.Fa goodbits ,
155or 1 otherwise.
156In particular, it returns 1 if
157.Fa bitstr
158is
159.Dv NULL
160or if no bit is set in
161.Fa bitstr .
162.Sh SEE ALSO 126.Sh SEE ALSO
163.Xr ASN1_BIT_STRING_new 3 , 127.Xr ASN1_BIT_STRING_new 3 ,
164.Xr ASN1_STRING_set 3 , 128.Xr ASN1_STRING_set 3 ,
@@ -172,7 +136,3 @@ and
172first appeared in SSLeay 0.9.0. 136first appeared in SSLeay 0.9.0.
173These functions have been available since 137These functions have been available since
174.Ox 2.4 . 138.Ox 2.4 .
175.Pp
176.Fn ASN1_BIT_STRING_check
177first appeared in OpenSSL 1.0.0 and has have been available since
178.Ox 4.9 .