Recent(ish) openssl libraries produce The alien function "SSLv23_method" is undefined errors with as-ssl:tcp-ssl-connect. This occurs on libssl1.1 (1.1.k-1+debian) on Debian 11 and openssl 1.1.1.l-1 on Arch.
The openssl/ssl.h header file "#define"s SSLv23_metod to TLS_method to hide part of the API changes. That does not help cffi implementations.
Moreover, handshake completion detection also changed. This patch allows as-ssl to work with recent versions, but breaks with older versions of the API. It is not clear to me how to detect the library version to support both.
Recent(ish) openssl libraries produce
The alien function "SSLv23_method" is undefined
errors withas-ssl:tcp-ssl-connect
. This occurs on libssl1.1 (1.1.k-1+debian) on Debian 11 and openssl 1.1.1.l-1 on Arch.The
openssl/ssl.h
header file "#define"sSSLv23_metod
toTLS_method
to hide part of the API changes. That does not helpcffi
implementations.Moreover, handshake completion detection also changed. This patch allows
as-ssl
to work with recent versions, but breaks with older versions of the API. It is not clear to me how to detect the library version to support both.Suggestions welcome.