processone / fast_tls

TLS / SSL OpenSSL-based native driver for Erlang / Elixir
https://www.ejabberd.im
Other
83 stars 37 forks source link

Fix build failure with LibreSSL #65

Closed CyberTailor closed 5 months ago

CyberTailor commented 5 months ago

The library can't be compiled with LibreSSL since 1dc4ac9a0ca4a7e0ef026194a1ce56b45db6fe8d

RFC 7627 APIs were introduced in OpenSSL 1.1.0. This quick fix replaces SSL_get_extms_support with a macro in versions that don't have it.


I license this contribution under the terms set out in the Unlicense license.

coveralls commented 5 months ago

Coverage Status

coverage: 57.328%. remained the same when pulling 88349e6cc2f31273db94821d1c3a960ee3362215 on CyberTailor:master into 65844dc11b49470cbde3766bb3f0b952662a2451 on processone:master.

prefiks commented 5 months ago

I believe check for TLS1_3_VERSION that usage of SSL_get_extms_support is already behind, should make OPENSSL_VERSION_NUMBER < 0x10100000L part not needed, but it shouldn't also cause problems, so let's merge it as is.