Avoid exporting bogus (empty) data if empty selection is used
authorTomas Mraz <tomas@openssl.org>
Fri, 21 Jul 2023 14:26:12 +0000 (16:26 +0200)
committerTodd Short <todd.short@me.com>
Fri, 4 Aug 2023 14:13:40 +0000 (10:13 -0400)
commit8865d7c4e8f9afac969fc927f2b24ee6d03868bd
tree372b64bce64185800636044aa4ca713a88e3b33b
parent069ff058850ab53f54401ebcd8843d666027ecae
Avoid exporting bogus (empty) data if empty selection is used

This is already correct in the rsa_kmgmt.c but other
implementations are wrong.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21519)

(cherry picked from commit 1ae4678cebaa13604c0f31bdf2c64cd28bdaf287)
providers/implementations/keymgmt/dh_kmgmt.c
providers/implementations/keymgmt/dsa_kmgmt.c
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/keymgmt/mac_legacy_kmgmt.c