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/a_object.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/asn1/a_object.c') diff --git a/src/lib/libcrypto/asn1/a_object.c b/src/lib/libcrypto/asn1/a_object.c index e10af97d36..16c3a1c0fd 100644 --- a/src/lib/libcrypto/asn1/a_object.c +++ b/src/lib/libcrypto/asn1/a_object.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_object.c,v 1.30 2017/05/02 03:59:44 deraadt Exp $ */ +/* $OpenBSD: a_object.c,v 1.31 2018/04/25 11:48:21 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -67,7 +67,7 @@ #include int -i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp) +i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp) { unsigned char *p; int objsize; @@ -213,13 +213,13 @@ err: } int -i2t_ASN1_OBJECT(char *buf, int buf_len, ASN1_OBJECT *a) +i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a) { return OBJ_obj2txt(buf, buf_len, a, 0); } int -i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a) +i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a) { char *tmp = NULL; size_t tlen = 256; -- cgit v1.2.3-55-g6feb