summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/evp/p_lib.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-05-13 06:38:46 +0000
committertb <tb@openbsd.org>2018-05-13 06:38:46 +0000
commita257a91832d78d8c3f2e09ae669dedbde91bd8ad (patch)
treef7ae13745aa4405dca49143331061a1e2c3c474c /lib/libcrypto/evp/p_lib.c
parentAdd a const qualifier to the argument of EVP_PKEY_bits(3). (diff)
downloadwireguard-openbsd-a257a91832d78d8c3f2e09ae669dedbde91bd8ad.tar.xz
wireguard-openbsd-a257a91832d78d8c3f2e09ae669dedbde91bd8ad.zip
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/evp/p_lib.c')
-rw-r--r--lib/libcrypto/evp/p_lib.c4
1 files changed, 2 insertions, 2 deletions
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;
}