From d9e887ac04617824f6c8c1a35ac70be64d7bd8a4 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 18 May 2018 17:59:17 +0000 Subject: Add a const qualifier to the 'X509_NAME_ENTRY *ne' argument of X509_NAME_add_entry(3). tested in a bulk build by sthen, ok jsing --- lib/libcrypto/x509/x509.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libcrypto/x509/x509.h') diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 0b3a63b6ec6..43af6266136 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.53 2018/05/18 17:56:12 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.54 2018/05/18 17:59:16 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1103,7 +1103,7 @@ int X509_NAME_get_index_by_OBJ(X509_NAME *name,ASN1_OBJECT *obj, int lastpos); X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc); X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); -int X509_NAME_add_entry(X509_NAME *name,X509_NAME_ENTRY *ne, +int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, int loc, int set); int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, unsigned char *bytes, int len, int loc, int set); -- cgit v1.2.3