diff --git a/ltls.pbi b/ltls.pbi index bece64f..7ac7aad 100644 --- a/ltls.pbi +++ b/ltls.pbi @@ -63,8 +63,7 @@ Module ltls PrototypeC.i Pr_tls_free(*ctx) PrototypeC.i Pr_tls_config_free(*cfg) - - #TLS_WANT_POLLIN = -2 + #TLS_WANT_POLLIN = -2 #TLS_WANT_POLLOUT = -3 CompilerIf #PB_Compiler_Processor = #PB_Processor_x64 @@ -80,12 +79,15 @@ Module ltls EndIf EndIf CompilerElse - Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib/libtls.so.20") + Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib/libtls.so.22") If Not IsLibrary(libressl_tls) - Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib/libtls.so.17") + Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib/libtls.so.20") If Not IsLibrary(libressl_tls) - lhs_log::Out("Library not found: /usr/lib/libtls.so.20 or .17") - End + Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib/libtls.so.17") + If Not IsLibrary(libressl_tls) + lhs_log::Out("Library not found: /usr/lib/libtls.so.22 or .20 or .17") + End + EndIf EndIf EndIf CompilerEndIf