diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-30 15:40:51 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-30 15:40:51 +0000 |
commit | a83ae1ef3a20d56bc7b186d26029748755da1811 (patch) | |
tree | a4a1ad543a15f6db6a050c56f3542a64d2c6a34e /lib | |
parent | eb64d832216e57f49ccc89c7ce838b2a8720766b (diff) |
Add a const qualifier to the argument of EVP_PKEY_size().
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'lib')
-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 4f1c5c5d81e..c557ba9f395 100644 --- a/lib/libcrypto/evp/evp.h +++ b/lib/libcrypto/evp/evp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: evp.h,v 1.63 2018/05/13 06:40:55 tb Exp $ */ +/* $OpenBSD: evp.h,v 1.64 2018/05/30 15:40:50 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -868,7 +868,7 @@ int EVP_PKEY_type(int type); int EVP_PKEY_id(const EVP_PKEY *pkey); int EVP_PKEY_base_id(const EVP_PKEY *pkey); int EVP_PKEY_bits(const EVP_PKEY *pkey); -int EVP_PKEY_size(EVP_PKEY *pkey); +int EVP_PKEY_size(const 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); diff --git a/lib/libcrypto/evp/p_lib.c b/lib/libcrypto/evp/p_lib.c index 9065786d17a..0e4c38e2188 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.23 2018/05/13 06:38:46 tb Exp $ */ +/* $OpenBSD: p_lib.c,v 1.24 2018/05/30 15:40:50 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -93,7 +93,7 @@ EVP_PKEY_bits(const EVP_PKEY *pkey) } int -EVP_PKEY_size(EVP_PKEY *pkey) +EVP_PKEY_size(const EVP_PKEY *pkey) { if (pkey && pkey->ameth && pkey->ameth->pkey_size) return pkey->ameth->pkey_size(pkey); |