The current libtcnative has one regression and one nag. Please apply the following patches when LibreSSL is used: * Revert https://github.com/apache/tomcat-native/commit/b8649e81458194d70667952d9e26df82a79c773f * Apply https://github.com/apache/tomcat-native/commit/14f47ffea3105db6f17bee4a029eaf73e94ddee4 and bump the port revision
Can they be reverted/applied also when openssl is used?
(In reply to Alex Dupre from comment #1) From the top of my head: Yes, but I need to verify to be 100% sure. Will do this evening.
I have branched off 1.2.24 and cherry picked those two commits. Ran all Tomcat tests on 12.1-STABLE with OpenSSL 1.0.2 from source, OpenSSL 1.1.1 from base and LibreSSL from master and everything works. Except org.apache.tomcat.util.net.TestSSLHostConfigCompat. This one crashes due to incompat between OpenSSL/LibreSSL, but that this OK. Find the required patches attached.
Created attachment 214392 [details] First patch
Created attachment 214393 [details] Second patch
Please ignore the hunks on changelog.xml. They are irrelevant.
Thanks Michael!
A commit references this bug: Author: ale Date: Wed May 13 07:55:25 UTC 2020 New revision: 535088 URL: https://svnweb.freebsd.org/changeset/ports/535088 Log: Fix build with libressl. PR: 246373 Submitted by: Michael Osipov <michael.osipov@siemens.com> Changes: head/www/tomcat-native/Makefile head/www/tomcat-native/files/ head/www/tomcat-native/files/patch-include_ssl__private.h head/www/tomcat-native/files/patch-src_ssl.c
Very much welcome! I have already the next series of issues with LibreSSL identified and will put them upstream. Hope to earn port commit bit at some point in future.