]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Constify X509_issuer_and_serial_hash
authorMilan Broz <gmazyland@gmail.com>
Thu, 19 Feb 2026 13:04:39 +0000 (14:04 +0100)
committerNeil Horman <nhorman@openssl.org>
Fri, 20 Feb 2026 16:22:06 +0000 (11:22 -0500)
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Fri Feb 20 16:22:12 2026
(Merged from https://github.com/openssl/openssl/pull/30084)

crypto/x509/x509_cmp.c
include/openssl/x509.h.in

index 51952dce5605fcbe3fecea3d774f5db1678fb45b..c83560476bfbaaa499d0efb7ecdcf7e061e50709 100644 (file)
@@ -34,7 +34,7 @@ int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
 }
 
 #ifndef OPENSSL_NO_MD5
-unsigned long X509_issuer_and_serial_hash(X509 *a)
+unsigned long X509_issuer_and_serial_hash(const X509 *a)
 {
     unsigned long ret = 0;
     EVP_MD_CTX *ctx = EVP_MD_CTX_new();
index cd35d9e2724a42451f1d61739c49b5cd891978d3..ea88e30f33bc6dd4d7ade3481833e028deb588e8 100644 (file)
@@ -789,7 +789,7 @@ void OSSL_STACK_OF_X509_free(STACK_OF(X509) *certs);
 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);
 
 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
-unsigned long X509_issuer_and_serial_hash(X509 *a);
+unsigned long X509_issuer_and_serial_hash(const X509 *a);
 
 int X509_issuer_name_cmp(const X509 *a, const X509 *b);
 unsigned long X509_issuer_name_hash(X509 *a);