From b32b7334e82988558a84760f424f8dd93d902393 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 25 Apr 2018 11:48:21 +0000 Subject: 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 --- src/lib/libcrypto/asn1/f_enum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/asn1/f_enum.c') 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 @@ -/* $OpenBSD: f_enum.c,v 1.15 2017/01/29 17:49:22 beck Exp $ */ +/* $OpenBSD: f_enum.c,v 1.16 2018/04/25 11:48:21 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -65,7 +65,7 @@ /* Based on a_int.c: equivalent ENUMERATED functions */ int -i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a) +i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a) { int i, n = 0; static const char h[] = "0123456789ABCDEF"; -- cgit v1.2.3-55-g6feb