From 5ebd2fcbc76c8b777d044f25dd50d73d75625352 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 17 Aug 2016 14:58:56 +0100 Subject: [PATCH] Constify X509_certificate_type() Reviewed-by: Richard Levitte --- crypto/x509/x509type.c | 2 +- include/openssl/x509.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/x509/x509type.c b/crypto/x509/x509type.c index 8c7242cc66..aca8355273 100644 --- a/crypto/x509/x509type.c +++ b/crypto/x509/x509type.c @@ -13,7 +13,7 @@ #include #include -int X509_certificate_type(X509 *x, const EVP_PKEY *pkey) +int X509_certificate_type(const X509 *x, const EVP_PKEY *pkey) { const EVP_PKEY *pk; int ret = 0, i; diff --git a/include/openssl/x509.h b/include/openssl/x509.h index fc23d9b91b..22385295e3 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h @@ -639,7 +639,7 @@ const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x); EVP_PKEY *X509_get0_pubkey(const X509 *x); EVP_PKEY *X509_get_pubkey(X509 *x); ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x); -int X509_certificate_type(X509 *x, const EVP_PKEY *pubkey /* optional */ ); +int X509_certificate_type(const X509 *x, const EVP_PKEY *pubkey); long X509_REQ_get_version(const X509_REQ *req); int X509_REQ_set_version(X509_REQ *x, long version); -- 2.25.1