From: FdaSilvaYY Date: Fri, 10 Mar 2023 14:16:01 +0000 (+0100) Subject: cmp: fix --strict-warnings windows builds X-Git-Tag: openssl-3.2.0-alpha1~1122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f792f4d27b47213166e0fa9c9b10a3eab85b8f6;p=thirdparty%2Fopenssl.git cmp: fix --strict-warnings windows builds remove unneeded const qualifier to keep method declaration and definition in sync. Reviewed-by: David von Oheimb Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/20436) --- diff --git a/doc/man3/OSSL_CMP_CTX_new.pod b/doc/man3/OSSL_CMP_CTX_new.pod index 040be8e167c..9c1aa6f88a5 100644 --- a/doc/man3/OSSL_CMP_CTX_new.pod +++ b/doc/man3/OSSL_CMP_CTX_new.pod @@ -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); diff --git a/include/openssl/cmp.h.in b/include/openssl/cmp.h.in index 0ac7f5b0406..32360120c2e 100644 --- a/include/openssl/cmp.h.in +++ b/include/openssl/cmp.h.in @@ -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);