diff options
author | tb <> | 2018-04-25 11:48:21 +0000 |
---|---|---|
committer | tb <> | 2018-04-25 11:48:21 +0000 |
commit | b32b7334e82988558a84760f424f8dd93d902393 (patch) | |
tree | 2706fdfa25b0fa2dc71fc06b437d687057013dcc /src/lib/libcrypto/asn1/t_bitst.c | |
parent | 2225014e9e21b521735cd7db7cea4d899863d67b (diff) | |
download | openbsd-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/t_bitst.c')
-rw-r--r-- | src/lib/libcrypto/asn1/t_bitst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/t_bitst.c b/src/lib/libcrypto/asn1/t_bitst.c index ea4138e0fb..51515b88e2 100644 --- a/src/lib/libcrypto/asn1/t_bitst.c +++ b/src/lib/libcrypto/asn1/t_bitst.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_bitst.c,v 1.7 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: t_bitst.c,v 1.8 2018/04/25 11:48:21 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -83,7 +83,7 @@ ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, | |||
83 | } | 83 | } |
84 | 84 | ||
85 | int | 85 | int |
86 | ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, | 86 | ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, |
87 | BIT_STRING_BITNAME *tbl) | 87 | BIT_STRING_BITNAME *tbl) |
88 | { | 88 | { |
89 | int bitnum; | 89 | int bitnum; |
@@ -99,7 +99,7 @@ ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, | |||
99 | } | 99 | } |
100 | 100 | ||
101 | int | 101 | int |
102 | ASN1_BIT_STRING_num_asc(char *name, BIT_STRING_BITNAME *tbl) | 102 | ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl) |
103 | { | 103 | { |
104 | BIT_STRING_BITNAME *bnam; | 104 | BIT_STRING_BITNAME *bnam; |
105 | 105 | ||