Change arg to cms_CompressedData_init_bio to be const
authorMatt Caswell <matt@openssl.org>
Thu, 7 Mar 2019 14:14:30 +0000 (14:14 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 8 Mar 2019 16:06:26 +0000 (16:06 +0000)
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 <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8433)

crypto/cms/cms_cd.c

index 93862730ba9b1a58bfd5f0e78a5959124fd89c7b..5a11928e302700a7f69397cc7a6cb837eacc8e78 100644 (file)
@@ -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;