diff options
author | 2018-05-13 06:38:46 +0000 | |
---|---|---|
committer | 2018-05-13 06:38:46 +0000 | |
commit | a257a91832d78d8c3f2e09ae669dedbde91bd8ad (patch) | |
tree | f7ae13745aa4405dca49143331061a1e2c3c474c | |
parent | Add a const qualifier to the argument of EVP_PKEY_bits(3). (diff) | |
download | wireguard-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)
-rw-r--r-- | lib/libcrypto/evp/evp.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/evp/p_lib.c | 4 |
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; } |