From: Shreya Bhandare Date: Thu, 13 Dec 2018 17:29:10 +0000 (+0530) Subject: EVP_PKEY_size declared to take a const parameter X-Git-Tag: openssl-3.0.0-alpha1~2677 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=47ec2367ebf6082abb103e66e609feb5c128d358;hp=c79a022da973140c141eeebff9170ca5702be0f9 EVP_PKEY_size declared to take a const parameter CLA: trivial Function EVP_PKEY_size has been modified to take a const parameter Reviewed-by: Richard Levitte Reviewed-by: Kurt Roeckx Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/7892) --- diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 4c21549f1b..5f599ab84a 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -42,7 +42,7 @@ int EVP_PKEY_security_bits(const EVP_PKEY *pkey) return pkey->ameth->pkey_security_bits(pkey); } -int EVP_PKEY_size(EVP_PKEY *pkey) +int EVP_PKEY_size(const EVP_PKEY *pkey) { if (pkey && pkey->ameth && pkey->ameth->pkey_size) return pkey->ameth->pkey_size(pkey); diff --git a/doc/man3/EVP_SignInit.pod b/doc/man3/EVP_SignInit.pod index 2fcceb1cb0..02786d076e 100644 --- a/doc/man3/EVP_SignInit.pod +++ b/doc/man3/EVP_SignInit.pod @@ -17,7 +17,7 @@ functions void EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type); - int EVP_PKEY_size(EVP_PKEY *pkey); + int EVP_PKEY_size(const EVP_PKEY *pkey); int EVP_PKEY_security_bits(const EVP_PKEY *pkey); =head1 DESCRIPTION diff --git a/include/openssl/evp.h b/include/openssl/evp.h index ede4b1429b..9f1dbd4b8b 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -1055,7 +1055,7 @@ 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_security_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_set_alias_type(EVP_PKEY *pkey, int type);