]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC of r358404, r358410, r358412, and r358413:
authorHiroki Sato <hrs@FreeBSD.org>
Wed, 18 Mar 2020 18:21:58 +0000 (18:21 +0000)
committerHiroki Sato <hrs@FreeBSD.org>
Wed, 18 Mar 2020 18:21:58 +0000 (18:21 +0000)
commit659bf3f1467bc258cb6ab11317085d5d8ca1a633
tree81606e9439afd388972c076fad591b58098188c7
parentdba9ed5af12c2fcf9a880b2a03e871b06c2fe783
MFC of r358404, r358410, r358412, and r358413:

Fix broken STARTTLS when SharedMemoryKey is enabled.

OpenSSL 1.1 API patch for sendmail had a bug which
prevented sm_RSA_generate_key() function from working.
This function is used to generate a temporary RSA key
for a shared memory region used for TLS processing.
Note that 12.0 and 12.1-RELEASE include this bug.

This affects only if SM_CONF_SHM compile-time
option (enabled by default) and SharedMemoryKey
run-time option (not enabled by default) in a .cf file are
specified.  The latter corresponds to confSHARED_MEMORY_KEY in
a .mc file.

Fix style inconsistencies.

Do not free p and g parameters after calling DH_set0_pqg(3).

PR: 242861
Differential Revision: https://reviews.freebsd.org/D23734
contrib/sendmail/src/tls.c