summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-05-17 09:17:20 +0000
committertb <>2022-05-17 09:17:20 +0000
commit8b50bcf55793c7830584351b3cadc861113b9b41 (patch)
treeb9734c9d1227c4f2fd5ed4f48b770f24032fe7f0 /src
parentfb501b82535e6677dceed02d6a4a2420f9a8be25 (diff)
downloadopenbsd-8b50bcf55793c7830584351b3cadc861113b9b41.tar.gz
openbsd-8b50bcf55793c7830584351b3cadc861113b9b41.tar.bz2
openbsd-8b50bcf55793c7830584351b3cadc861113b9b41.zip
Expose asn1_abs_set_unused_bits() in asn1_locl.h
Should have been part of a previous commit. ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c4
-rw-r--r--src/lib/libcrypto/asn1/asn1_locl.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index aa854f1d7a..c30b8f5b65 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_bitstr.c,v 1.35 2022/04/26 20:00:18 jsing Exp $ */ 1/* $OpenBSD: a_bitstr.c,v 1.36 2022/05/17 09:17:20 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -92,7 +92,7 @@ asn1_abs_clear_unused_bits(ASN1_BIT_STRING *abs)
92 abs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); 92 abs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
93} 93}
94 94
95static int 95int
96asn1_abs_set_unused_bits(ASN1_BIT_STRING *abs, uint8_t unused_bits) 96asn1_abs_set_unused_bits(ASN1_BIT_STRING *abs, uint8_t unused_bits)
97{ 97{
98 if (unused_bits > 7) 98 if (unused_bits > 7)
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h
index eaf2c1af66..db456c8ff2 100644
--- a/src/lib/libcrypto/asn1/asn1_locl.h
+++ b/src/lib/libcrypto/asn1/asn1_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_locl.h,v 1.31 2022/05/12 19:55:58 jsing Exp $ */ 1/* $OpenBSD: asn1_locl.h,v 1.32 2022/05/17 09:17:20 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -205,6 +205,7 @@ int asn1_get_primitive(CBS *cbs, int der_mode, uint32_t *out_tag_number,
205 205
206int asn1_tag2charwidth(int tag); 206int asn1_tag2charwidth(int tag);
207 207
208int asn1_abs_set_unused_bits(ASN1_BIT_STRING *abs, uint8_t unused_bits);
208int c2i_ASN1_BIT_STRING_cbs(ASN1_BIT_STRING **out_abs, CBS *cbs); 209int c2i_ASN1_BIT_STRING_cbs(ASN1_BIT_STRING **out_abs, CBS *cbs);
209 210
210int c2i_ASN1_INTEGER_cbs(ASN1_INTEGER **out_aint, CBS *cbs); 211int c2i_ASN1_INTEGER_cbs(ASN1_INTEGER **out_aint, CBS *cbs);