修复 openssl3 deprecated warning ERR_load_BIO_strings (#1816)

This commit is contained in:
ykxpb
2023-10-30 18:15:27 +08:00
committed by GitHub
parent adf0cc5a6f
commit 0e6423484f

View File

@@ -411,7 +411,9 @@ ltls_init_constructor(lua_State* L) {
if(!TLS_IS_INIT) {
SSL_library_init();
SSL_load_error_strings();
#if OPENSSL_VERSION_NUMBER < 0x30000000L
ERR_load_BIO_strings();
#endif
OpenSSL_add_all_algorithms();
}
#endif