diff options
author | tb <> | 2022-05-17 09:17:20 +0000 |
---|---|---|
committer | tb <> | 2022-05-17 09:17:20 +0000 |
commit | 8b50bcf55793c7830584351b3cadc861113b9b41 (patch) | |
tree | b9734c9d1227c4f2fd5ed4f48b770f24032fe7f0 /src/lib/libcrypto/asn1/a_bitstr.c | |
parent | fb501b82535e6677dceed02d6a4a2420f9a8be25 (diff) | |
download | openbsd-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/lib/libcrypto/asn1/a_bitstr.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_bitstr.c | 4 |
1 files changed, 2 insertions, 2 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 | ||
95 | static int | 95 | int |
96 | asn1_abs_set_unused_bits(ASN1_BIT_STRING *abs, uint8_t unused_bits) | 96 | asn1_abs_set_unused_bits(ASN1_BIT_STRING *abs, uint8_t unused_bits) |
97 | { | 97 | { |
98 | if (unused_bits > 7) | 98 | if (unused_bits > 7) |