summaryrefslogtreecommitdiff
path: root/crypto/dh
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-04-08 19:27:06 +0200
committerTomas Mraz <tomas@openssl.org>2021-04-15 09:23:18 +0200
commit7e43baed2a4cc050b301650c4a45ebdd54a30b5f (patch)
treeba88ce8f2a22394ee7329de560f4011730abcb2a /crypto/dh
parent85fcc3fb777c527a614e58c23609210a9edf893b (diff)
downloadopenssl-new-7e43baed2a4cc050b301650c4a45ebdd54a30b5f.tar.gz
Do not allow creating empty RSA keys by duplication
Also avoid crashing in rsa_get_params on empty keys. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14793)
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh_lib.c2
1 files changed, 0 insertions, 2 deletions
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;
}
-
-