diff options
-rw-r--r-- | src/lib/libcrypto/man/ASN1_BIT_STRING_set.3 | 44 |
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 |
53 | sets the length attribute of | 46 | sets the length attribute of |
@@ -99,21 +92,6 @@ checks that the bit with the given | |||
99 | .Fa bitnumber | 92 | .Fa bitnumber |
100 | is set in | 93 | is set in |
101 | .Fa bitstr . | 94 | .Fa bitstr . |
102 | .Pp | ||
103 | .Fn ASN1_BIT_STRING_check | ||
104 | checks that all bits set in | ||
105 | .Fa bitstr | ||
106 | are also set in | ||
107 | .Fa goodbits . | ||
108 | Expressed symbolically, it evaluates: | ||
109 | .Pp | ||
110 | .D1 Po Fa bitstr No & Pf \(ti Fa goodbits Pc == 0 | ||
111 | .Pp | ||
112 | The buffer | ||
113 | .Fa goodbits | ||
114 | is expected to contain | ||
115 | .Fa goodbits_len | ||
116 | bytes. | ||
117 | .Sh RETURN VALUES | 95 | .Sh RETURN VALUES |
118 | .Fn ASN1_BIT_STRING_set | 96 | .Fn ASN1_BIT_STRING_set |
119 | returns 1 on success or 0 if memory allocation fails or if | 97 | returns 1 on success or 0 if memory allocation fails or if |
@@ -145,20 +123,6 @@ if | |||
145 | points beyond the last data byte in | 123 | points beyond the last data byte in |
146 | .Fa bitstr , | 124 | .Fa bitstr , |
147 | or if the requested bit is not set. | 125 | or if the requested bit is not set. |
148 | .Pp | ||
149 | .Fn ASN1_BIT_STRING_check | ||
150 | returns 0 | ||
151 | if at least one bit is set in | ||
152 | .Fa bitstr | ||
153 | that is not set in | ||
154 | .Fa goodbits , | ||
155 | or 1 otherwise. | ||
156 | In particular, it returns 1 if | ||
157 | .Fa bitstr | ||
158 | is | ||
159 | .Dv NULL | ||
160 | or 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 | |||
172 | first appeared in SSLeay 0.9.0. | 136 | first appeared in SSLeay 0.9.0. |
173 | These functions have been available since | 137 | These functions have been available since |
174 | .Ox 2.4 . | 138 | .Ox 2.4 . |
175 | .Pp | ||
176 | .Fn ASN1_BIT_STRING_check | ||
177 | first appeared in OpenSSL 1.0.0 and has have been available since | ||
178 | .Ox 4.9 . | ||