summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-05-13 06:40:56 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-05-13 06:40:56 +0000
commit8235d3f1c3e52097ffaacc31ceb69a1bd8aa2b09 (patch)
tree5f90ce5e2158bf986faa0c0e12dcc342916e7847
parent22011042a6148e2200552820bf0ad18ac2cf3a5d (diff)
Add a const qualifier to the argument of EVP_PKEY_get0_asn1(3).
tested in a bulk build by sthen ok beck (as part of a larger diff)
-rw-r--r--lib/libcrypto/asn1/ameth_lib.c4
-rw-r--r--lib/libcrypto/evp/evp.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/asn1/ameth_lib.c b/lib/libcrypto/asn1/ameth_lib.c
index b27d72af45f..d1798cf4f67 100644
--- a/lib/libcrypto/asn1/ameth_lib.c
+++ b/lib/libcrypto/asn1/ameth_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ameth_lib.c,v 1.16 2017/01/21 04:31:25 jsing Exp $ */
+/* $OpenBSD: ameth_lib.c,v 1.17 2018/05/13 06:40:55 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -299,7 +299,7 @@ EVP_PKEY_asn1_get0_info(int *ppkey_id, int *ppkey_base_id, int *ppkey_flags,
}
const EVP_PKEY_ASN1_METHOD*
-EVP_PKEY_get0_asn1(EVP_PKEY *pkey)
+EVP_PKEY_get0_asn1(const EVP_PKEY *pkey)
{
return pkey->ameth;
}
diff --git a/lib/libcrypto/evp/evp.h b/lib/libcrypto/evp/evp.h
index 4f2c8671966..4f1c5c5d81e 100644
--- a/lib/libcrypto/evp/evp.h
+++ b/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp.h,v 1.62 2018/05/13 06:38:46 tb Exp $ */
+/* $OpenBSD: evp.h,v 1.63 2018/05/13 06:40:55 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -996,7 +996,7 @@ int EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id, int *ppkey_flags,
const char **pinfo, const char **ppem_str,
const EVP_PKEY_ASN1_METHOD *ameth);
-const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(EVP_PKEY *pkey);
+const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(const EVP_PKEY *pkey);
EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, const char *pem_str,
const char *info);
void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst,