[openssl/openssl] 9f0f83: Do not raise CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA...

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


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 9f0f833480861ef230d215aa24f1aeb2a2160e81
      https://github.com/openssl/openssl/commit/9f0f833480861ef230d215aa24f1aeb2a2160e81
  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