]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
cmp: fix --strict-warnings windows builds
authorFdaSilvaYY <fdasilvayy@gmail.com>
Fri, 10 Mar 2023 14:16:01 +0000 (15:16 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 21 Mar 2023 09:57:24 +0000 (10:57 +0100)
remove unneeded const qualifier to keep method declaration
and definition in sync.

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/20436)

doc/man3/OSSL_CMP_CTX_new.pod
include/openssl/cmp.h.in

index 040be8e167c1c80584019e382fdbd47f2df7e11f..9c1aa6f88a5805beec8623e5cf6db787a6840676 100644 (file)
@@ -120,7 +120,7 @@ OSSL_CMP_CTX_set1_senderNonce
  int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
                                       const unsigned char *ref, int len);
  int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
-                                   const unsigned char *sec, const int len);
+                                   const unsigned char *sec, int len);
 
  /* CMP message header and extra certificates: */
  int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
index 0ac7f5b0406ecbdde936e16a626df72f88e34088..32360120c2e1feb128bf8131c88d295ec29d85bf 100644 (file)
@@ -330,7 +330,7 @@ int OSSL_CMP_CTX_set1_pkey(OSSL_CMP_CTX *ctx, EVP_PKEY *pkey);
 int OSSL_CMP_CTX_set1_referenceValue(OSSL_CMP_CTX *ctx,
                                      const unsigned char *ref, int len);
 int OSSL_CMP_CTX_set1_secretValue(OSSL_CMP_CTX *ctx,
-                                  const unsigned char *sec, const int len);
+                                  const unsigned char *sec, int len);
 /* CMP message header and extra certificates: */
 int OSSL_CMP_CTX_set1_recipient(OSSL_CMP_CTX *ctx, const X509_NAME *name);
 int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);