From: Matt Caswell Date: Thu, 7 Mar 2019 14:14:30 +0000 (+0000) Subject: Change arg to cms_CompressedData_init_bio to be const X-Git-Tag: openssl-3.0.0-alpha1~2409 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fc4d00a00e5d25ce202e69414432a07c9e74502;p=thirdparty%2Fopenssl.git Change arg to cms_CompressedData_init_bio to be const The argument to this function is declared const in the header file. However the implementation did not have this. This issue is only visible when using enable-zlib. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8433) --- diff --git a/crypto/cms/cms_cd.c b/crypto/cms/cms_cd.c index 93862730ba..5a11928e30 100644 --- a/crypto/cms/cms_cd.c +++ b/crypto/cms/cms_cd.c @@ -60,7 +60,7 @@ CMS_ContentInfo *cms_CompressedData_create(int comp_nid) return NULL; } -BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) +BIO *cms_CompressedData_init_bio(const CMS_ContentInfo *cms) { CMS_CompressedData *cd; const ASN1_OBJECT *compoid;