From 5c39313f78354204100b89647c01a2ee708ed13c Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 13 May 2018 06:38:46 +0000 Subject: 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) --- src/lib/libcrypto/evp/evp.h | 4 ++-- src/lib/libcrypto/evp/p_lib.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index ec09deef46..4f2c867196 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/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/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index fab1eeb022..9065786d17 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/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; } -- cgit v1.2.3-55-g6feb