diff options
Diffstat (limited to 'mail/sendmail/files/patch-tls.c')
-rw-r--r-- | mail/sendmail/files/patch-tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/sendmail/files/patch-tls.c b/mail/sendmail/files/patch-tls.c index 37275cb07bf5..209beb5663e9 100644 --- a/mail/sendmail/files/patch-tls.c +++ b/mail/sendmail/files/patch-tls.c @@ -94,10 +94,10 @@ + int rc; + + bn_rsa_r4 = BN_new(); -+ rc = BN_set_word(bn_rsa_r4, RSA_F4); -+ if ((bn_rsa_r4 != NULL) && BN_set_word(bn_rsa_r4, RSA_F4) && (rsa = RSA_new()) != NULL) ++ rc = BN_set_word(bn_rsa_r4, e); ++ if ((bn_rsa_r4 != NULL) && BN_set_word(bn_rsa_r4, e) && (rsa = RSA_new()) != NULL) + { -+ if (!RSA_generate_key_ex(rsa, RSA_KEYLENGTH, bn_rsa_r4, NULL)) ++ if (!RSA_generate_key_ex(rsa, num, bn_rsa_r4, NULL)) + { + RSA_free(rsa); + rsa = NULL; |