patch-tls.c introduces sm_RSA_generate_key() function used as replacement of original RSA_generate_key/RSA_generate_key_ex function. Because of forgotten/excessive "return NULL" the function returns NULL all the times. As a result, server TLS initialisation fails and STARTTLS feature is not offered by server. Lines 98 + rsa = NULL; 99 + } 100 + return NULL; should be 98 + rsa = NULL; 99 + }
Thanks for reporting this.
A commit references this bug: Author: dinoex Date: Tue Dec 24 21:30:57 UTC 2019 New revision: 520819 URL: https://svnweb.freebsd.org/changeset/ports/520819 Log: - fix RSA_generate_key PR: 242862 Submitted by: Dan Lukes Changes: head/mail/sendmail/Makefile head/mail/sendmail/files/patch-tls.c
My former PRs has been waiting years for someone's attention. This one has been accepted and committed within hours. Christmas day is simply a time of miracles. Thanks.