diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-07-09 00:43:28 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-07-25 08:20:00 -0400 |
commit | fdaf7beec52cbe67332f2e5ad3b4f383153dbeb6 (patch) | |
tree | 77be1559599ba05213eb8ea2ef66728c4a600461 /crypto/x509/x509_cmp.c | |
parent | 84de54b91e65b02cc8b572edc11536d271c7187b (diff) |
Constify ...
X509_REVOKED_get0_extensions
X509_check_private_key
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1300)
Diffstat (limited to 'crypto/x509/x509_cmp.c')
-rw-r--r-- | crypto/x509/x509_cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c index 63cef40e40..191a8b051f 100644 --- a/crypto/x509/x509_cmp.c +++ b/crypto/x509/x509_cmp.c @@ -257,7 +257,7 @@ X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name) return (NULL); } -EVP_PKEY *X509_get0_pubkey(X509 *x) +EVP_PKEY *X509_get0_pubkey(const X509 *x) { if (x == NULL) return NULL; @@ -271,9 +271,9 @@ EVP_PKEY *X509_get_pubkey(X509 *x) return X509_PUBKEY_get(x->cert_info.key); } -int X509_check_private_key(X509 *x, EVP_PKEY *k) +int X509_check_private_key(const X509 *x, const EVP_PKEY *k) { - EVP_PKEY *xk; + const EVP_PKEY *xk; int ret; xk = X509_get0_pubkey(x); |