diff options
author | 2018-04-25 11:48:21 +0000 | |
---|---|---|
committer | 2018-04-25 11:48:21 +0000 | |
commit | 9b3891c73c550d75274c40aa68329a04f91c2de4 (patch) | |
tree | 565bfe89e361237d437d1b5a1b4ed39329de46da /lib/libcrypto/asn1/a_bitstr.c | |
parent | use size_t for the size of buffers and strings, not int. (diff) | |
download | wireguard-openbsd-9b3891c73c550d75274c40aa68329a04f91c2de4.tar.xz wireguard-openbsd-9b3891c73c550d75274c40aa68329a04f91c2de4.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 'lib/libcrypto/asn1/a_bitstr.c')
-rw-r--r-- | lib/libcrypto/asn1/a_bitstr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcrypto/asn1/a_bitstr.c b/lib/libcrypto/asn1/a_bitstr.c index 9ba77d6958b..8a4a68dbb31 100644 --- a/lib/libcrypto/asn1/a_bitstr.c +++ b/lib/libcrypto/asn1/a_bitstr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_bitstr.c,v 1.24 2017/01/29 17:49:22 beck Exp $ */ +/* $OpenBSD: a_bitstr.c,v 1.25 2018/04/25 11:48:21 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -222,7 +222,7 @@ ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value) } int -ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n) +ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n) { int w, v; @@ -240,7 +240,8 @@ ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n) * 'len' is the length of 'flags'. */ int -ASN1_BIT_STRING_check(ASN1_BIT_STRING *a, unsigned char *flags, int flags_len) +ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a, const unsigned char *flags, + int flags_len) { int i, ok; |