[openssl/openssl] 46c1c2: Fix the export routines to not return success if p...

matt noreply at reply.github.openssl.org
Wed Jun 15 11:00:36 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 46c1c2d7fa9153da4eb5e1aefd7b0139dc507c00
      https://github.openssl.org/openssl/openssl/commit/46c1c2d7fa9153da4eb5e1aefd7b0139dc507c00
  Author: Matt Caswell <matt at openssl.org>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M providers/implementations/keymgmt/dh_kmgmt.c
    M providers/implementations/keymgmt/dsa_kmgmt.c
    M providers/implementations/keymgmt/ec_kmgmt.c
    M providers/implementations/keymgmt/rsa_kmgmt.c

  Log Message:
  -----------
  Fix the export routines to not return success if param alloc failed

We fix the dsa, dh, ec and rsa export routines so that they are
consistent with each other and do not report success if the allocation
of parameters failed.

This is essentially the same fix as applied in #18483 but applied to all
relevant key types.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18507)




More information about the openssl-commits mailing list