Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS_decrypt*(): fix misconceptions and memory leak - backport to v3.0 and 3.1 #20209

Commits on Feb 3, 2023

  1. CMS_decrypt*(): fix misconceptions and mem leak

    Also document CMS_decrypt_set1_password() and fix CMS_EnvelopedData_create.pod.
    DDvO committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    83a5261 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48d9389 View commit details
    Browse the repository at this point in the history
  3. CMS_decrypt_set1_*(): remove misleading error queue entry when recipi…

    …ent mismatch was not the issue
    DDvO committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    6fb7281 View commit details
    Browse the repository at this point in the history
  4. CMS_decrypt_set1_*(): fix NULL deref on unsuitable content type

    Fixes openssl#19975
    for CMS_decrypt_set1_pkey_and_peer() in the obvious way,
    and a related potential crash in CMS_decrypt_set1_password().
    
    The point is that the input might have an unexpected content type,
    so a guard is needed at both places after `ec` is obtained.
    
    Note that in CMS_decrypt_set1_pkey_and_peer() there was
    no such ec != NULL guard for
    ```
        if (ris != NULL)
            debug = ec->debug;
    ```
    maybe because it is implied here by ris != NULL.
    DDvO committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    21d0f77 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. Configuration menu
    Copy the full SHA
    6cdac98 View commit details
    Browse the repository at this point in the history