summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509/x509_cmp.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-05-13 10:36:36 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-05-13 10:36:36 +0000
commitc0172fd6bdfb7eac130c3f14ccb08c7b4ea362c7 (patch)
tree6bf15b19ce28f0368e945d61cdf7daa8d8f5f9a1 /lib/libcrypto/x509/x509_cmp.c
parent7a8af8f5285fb428ded7119abd3877b114bb2c38 (diff)
Add const qualifier to the argument of X509_get_issuer_name(3) and
X509_get_subject_name(3). tested in a bulk build by sthen ok jsing (as part of a larger diff)
Diffstat (limited to 'lib/libcrypto/x509/x509_cmp.c')
-rw-r--r--lib/libcrypto/x509/x509_cmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/x509/x509_cmp.c b/lib/libcrypto/x509/x509_cmp.c
index 73d060f4045..b8d1cd46803 100644
--- a/lib/libcrypto/x509/x509_cmp.c
+++ b/lib/libcrypto/x509/x509_cmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_cmp.c,v 1.31 2018/05/01 19:01:28 tb Exp $ */
+/* $OpenBSD: x509_cmp.c,v 1.32 2018/05/13 10:36:35 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -145,7 +145,7 @@ X509_CRL_match(const X509_CRL *a, const X509_CRL *b)
#endif
X509_NAME *
-X509_get_issuer_name(X509 *a)
+X509_get_issuer_name(const X509 *a)
{
return (a->cert_info->issuer);
}
@@ -165,7 +165,7 @@ X509_issuer_name_hash_old(X509 *x)
#endif
X509_NAME *
-X509_get_subject_name(X509 *a)
+X509_get_subject_name(const X509 *a)
{
return (a->cert_info->subject);
}