From 7e43baed2a4cc050b301650c4a45ebdd54a30b5f Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 8 Apr 2021 19:27:06 +0200 Subject: Do not allow creating empty RSA keys by duplication Also avoid crashing in rsa_get_params on empty keys. Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14793) --- crypto/dh/dh_lib.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'crypto/dh') diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index 92767a94c2..f5e0f893c1 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -325,5 +325,3 @@ int ossl_dh_get0_nid(const DH *dh) { return dh->params.nid; } - - -- cgit v1.2.1