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/f_enum.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/f_enum.c')
-rw-r--r-- | src/lib/libcrypto/asn1/f_enum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/f_enum.c b/src/lib/libcrypto/asn1/f_enum.c index 64feb97dc4..cc4b7dfc91 100644 --- a/src/lib/libcrypto/asn1/f_enum.c +++ b/src/lib/libcrypto/asn1/f_enum.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: f_enum.c,v 1.15 2017/01/29 17:49:22 beck Exp $ */ | 1 | /* $OpenBSD: f_enum.c,v 1.16 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 | * |
@@ -65,7 +65,7 @@ | |||
65 | /* Based on a_int.c: equivalent ENUMERATED functions */ | 65 | /* Based on a_int.c: equivalent ENUMERATED functions */ |
66 | 66 | ||
67 | int | 67 | int |
68 | i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a) | 68 | i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a) |
69 | { | 69 | { |
70 | int i, n = 0; | 70 | int i, n = 0; |
71 | static const char h[] = "0123456789ABCDEF"; | 71 | static const char h[] = "0123456789ABCDEF"; |