FreeBSD Bugzilla – Attachment 210201 Details for
Bug 242861
Sendmail's STARTTLS broken for 12.1-RELEASE/12.0-RELEASE/12-STABLE/HEAD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
tls.c::sm_RSA_generate_key() patch, based on revision 463590 of patch-tls.c
patch-SENDMAIL-BROKENTLS (text/plain), 829 bytes, created by
Dan Lukes
on 2019-12-24 15:18:44 UTC
(
hide
)
Description:
tls.c::sm_RSA_generate_key() patch, based on revision 463590 of patch-tls.c
Filename:
MIME Type:
Creator:
Dan Lukes
Created:
2019-12-24 15:18:44 UTC
Size:
829 bytes
patch
obsolete
>--- contrib/sendmail/src/tls.c.x 2019-12-24 14:57:21.569610000 +0100 >+++ contrib/sendmail/src/tls.c 2019-12-24 16:07:14.078702000 +0100 >@@ -748,14 +748,26 @@ > 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) >+ if (bn_rsa_r4 == NULL) > { >- if (!RSA_generate_key_ex(rsa, RSA_KEYLENGTH, bn_rsa_r4, NULL)) >- { >- RSA_free(rsa); >- rsa = NULL; >- } >+ return NULL; >+ } >+ rc = BN_set_word(bn_rsa_r4, e); >+ if (BN_set_word == 0) >+ { >+ BN_free(bn_rsa_r4); >+ return NULL; >+ } >+ rsa = RSA_new(); >+ if (rsa == NULL) >+ { >+ BN_free(bn_rsa_r4); >+ return NULL; >+ } >+ if (!RSA_generate_key_ex(rsa, num, bn_rsa_r4, NULL)) >+ { >+ BN_free(bn_rsa_r4); >+ RSA_free(rsa); > return NULL; > } > BN_free(bn_rsa_r4);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242861
:
210201
|
210203