Skip to content

Commit

Permalink
Sometimes we don't need to generate ephemeral RSA keys
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 31, 2014
1 parent a2eb6ba commit 4f16a3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/tls.c
Expand Up @@ -1057,6 +1057,8 @@ static int generate_eph_rsa_key(SSL_CTX *ctx)
{
RSA *rsa;

if (!SSL_CTX_need_tmp_RSA(ctx)) return 0;

rsa = RSA_generate_key(512, RSA_F4, NULL, NULL);

if (!SSL_CTX_set_tmp_rsa(ctx, rsa)) {
Expand Down

0 comments on commit 4f16a3a

Please sign in to comment.