summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_bitstr.c
diff options
context:
space:
mode:
authortb <>2018-04-25 11:48:21 +0000
committertb <>2018-04-25 11:48:21 +0000
commitb32b7334e82988558a84760f424f8dd93d902393 (patch)
tree2706fdfa25b0fa2dc71fc06b437d687057013dcc /src/lib/libcrypto/asn1/a_bitstr.c
parent2225014e9e21b521735cd7db7cea4d899863d67b (diff)
downloadopenbsd-b32b7334e82988558a84760f424f8dd93d902393.tar.gz
openbsd-b32b7334e82988558a84760f424f8dd93d902393.tar.bz2
openbsd-b32b7334e82988558a84760f424f8dd93d902393.zip
Add const to functions in asn1/asn1.h as they did in OpenSSL.
BIO_f_asn1() will be taken care of later. Tested in a bulk by sthen ok bcook jca jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/a_bitstr.c')
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c7
1 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 9ba77d6958..8a4a68dbb3 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.24 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: a_bitstr.c,v 1.25 2018/04/25 11:48:21 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 *
@@ -222,7 +222,7 @@ ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
222} 222}
223 223
224int 224int
225ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n) 225ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n)
226{ 226{
227 int w, v; 227 int w, v;
228 228
@@ -240,7 +240,8 @@ ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n)
240 * 'len' is the length of 'flags'. 240 * 'len' is the length of 'flags'.
241 */ 241 */
242int 242int
243ASN1_BIT_STRING_check(ASN1_BIT_STRING *a, unsigned char *flags, int flags_len) 243ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a, const unsigned char *flags,
244 int flags_len)
244{ 245{
245 int i, ok; 246 int i, ok;
246 247