summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-05-18 17:56:13 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-05-18 17:56:13 +0000
commit9fc85221fd22b35fbbcbb4d133abd0078318730a (patch)
tree97c9aed7d61c0725e747190593af6773bd4e597f /lib/libcrypto/x509
parentafd54f3fec313b9619a978bbca9e53e087f404bd (diff)
Add const to the argument of X509_NAME_ENTRY_get_data(3).
Tested in a bulk build by sthen ok jsing
Diffstat (limited to 'lib/libcrypto/x509')
-rw-r--r--lib/libcrypto/x509/x509.h4
-rw-r--r--lib/libcrypto/x509/x509name.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h
index 44585c943fb..0b3a63b6ec6 100644
--- a/lib/libcrypto/x509/x509.h
+++ b/lib/libcrypto/x509/x509.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.h,v 1.52 2018/05/18 17:53:09 tb Exp $ */
+/* $OpenBSD: x509.h,v 1.53 2018/05/18 17:56:12 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1123,7 +1123,7 @@ int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne,
int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,
const unsigned char *bytes, int len);
ASN1_OBJECT * X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne);
-ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne);
+ASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);
int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne);
int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x);
diff --git a/lib/libcrypto/x509/x509name.c b/lib/libcrypto/x509/x509name.c
index 678b073a399..9ff2a907b4e 100644
--- a/lib/libcrypto/x509/x509name.c
+++ b/lib/libcrypto/x509/x509name.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509name.c,v 1.18 2018/05/18 17:53:09 tb Exp $ */
+/* $OpenBSD: x509name.c,v 1.19 2018/05/18 17:56:12 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -396,7 +396,7 @@ X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne)
}
ASN1_STRING *
-X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne)
+X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne)
{
if (ne == NULL)
return (NULL);