summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-05-13 06:38:47 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-05-13 06:38:47 +0000
commit22011042a6148e2200552820bf0ad18ac2cf3a5d (patch)
treeb6a5f76acf9c13eee9139b9a245c6cdf388a2c42 /lib/libcrypto
parentc527478359a4eeef274a329ad12c72474892328b (diff)
Add a const qualifier to the argument of EVP_PKEY_get0(3).
tested in a bulk build by sthen ok beck (as part of a larger diff)
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/evp/evp.h4
-rw-r--r--lib/libcrypto/evp/p_lib.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/evp/evp.h b/lib/libcrypto/evp/evp.h
index ec09deef469..4f2c8671966 100644
--- a/lib/libcrypto/evp/evp.h
+++ b/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp.h,v 1.61 2018/05/13 06:37:14 tb Exp $ */
+/* $OpenBSD: evp.h,v 1.62 2018/05/13 06:38:46 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -872,7 +872,7 @@ int EVP_PKEY_size(EVP_PKEY *pkey);
int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
-void *EVP_PKEY_get0(EVP_PKEY *pkey);
+void *EVP_PKEY_get0(const EVP_PKEY *pkey);
#ifndef OPENSSL_NO_RSA
struct rsa_st;
diff --git a/lib/libcrypto/evp/p_lib.c b/lib/libcrypto/evp/p_lib.c
index fab1eeb0229..9065786d17a 100644
--- a/lib/libcrypto/evp/p_lib.c
+++ b/lib/libcrypto/evp/p_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p_lib.c,v 1.22 2018/05/13 06:37:14 tb Exp $ */
+/* $OpenBSD: p_lib.c,v 1.23 2018/05/13 06:38:46 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -277,7 +277,7 @@ EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key)
}
void *
-EVP_PKEY_get0(EVP_PKEY *pkey)
+EVP_PKEY_get0(const EVP_PKEY *pkey)
{
return pkey->pkey.ptr;
}