[openssl/openssl] 2c4fec: Do not raise CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA...

Olga Batyshkina noreply at github.com
Thu Aug 10 10:14:12 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 2c4fec62384a924be7139e82191c340e214333a4
      https://github.com/openssl/openssl/commit/2c4fec62384a924be7139e82191c340e214333a4
  Author: Olga Batyshkina <obatysh at gmx.com>
  Date:   2023-08-10 (Thu, 10 Aug 2023)

  Changed paths:
    M crypto/cms/cms_env.c
    M crypto/cms/cms_lib.c
    M crypto/cms/cms_local.h
    M test/cmsapitest.c

  Log Message:
  -----------
  Do not raise CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA error in CMS_ContentInfo_free

This happens if this function is called for signed content.

Added ossl_cms_env_enc_content_free() for cleaning enveloped content.

Fixed indentation in ossl_cms_env_enc_content_free

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21676)

(cherry picked from commit 13342efbb9e16ec8f97b1ac5ab4aa2b3b3490596)




More information about the openssl-commits mailing list