diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-24 18:28:06 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-26 09:35:05 +0200 |
commit | 7674e92324648b59786d86d8e9014bbaed4e6d07 (patch) | |
tree | ae60c1aa1dd846201ff81d724c750c55fb89c293 /crypto/ec | |
parent | 5606922c3d2e8c3d3ffda4347cb9fe3992d75f89 (diff) | |
download | openssl-7674e92324648b59786d86d8e9014bbaed4e6d07.tar.gz |
Constify X509_PUBKEY_get(), X509_PUBKEY_get0(), and X509_PUBKEY_get0_param()
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11894)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_ameth.c | 2 | ||||
-rw-r--r-- | crypto/ec/ecx_meth.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ec_ameth.c b/crypto/ec/ec_ameth.c index cac0b682f9..6ccaef3815 100644 --- a/crypto/ec/ec_ameth.c +++ b/crypto/ec/ec_ameth.c @@ -141,7 +141,7 @@ static EC_KEY *eckey_type2param(int ptype, const void *pval) return NULL; } -static int eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) +static int eckey_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) { const unsigned char *p = NULL; const void *pval; diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index eedb1c9259..8b63e6918d 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -126,7 +126,7 @@ static int ecx_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) return 1; } -static int ecx_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) +static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) { const unsigned char *p; int pklen; |