@henningw @miconda - a somewhat related question before a hypothetical `tls_common` (or `tls_mgm` in OpenSIPS) intermediate module: in master and 5.6 do we really want to continue to support older versions of OpenSSL (< 1.1.1)? This backward compatibility leads to a lot of special casing and gnarly code.
If the argument is for building newer kamailio on systems where the packaged or system version is OpenSSL ≤ 1.0.2 then the argument could also be made that such users could build OpenSSL ≥ 1.1.1 first.
OpenSSL 1.0.2/1.1.0 are EoL in 2019 and perhaps we should not facilitate such outdated libraries.