usockets: support openssl3 (#4804)

pull/4809/head
HapiFive 4 months ago committed by GitHub
parent 07edd5339e
commit 8c27be5beb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/u/usockets/port/xmake.lua
  2. 4
      packages/u/usockets/xmake.lua

@ -9,7 +9,7 @@ local ssl = get_config("ssl")
if ssl then
add_requires(ssl)
add_packages(ssl)
if ssl == "openssl" or ssl == "boringssl" then
if ssl == "openssl" or ssl == "openssl3" or ssl == "boringssl" then
add_defines("LIBUS_USE_OPENSSL")
elseif ssl == "wolfssl" then
add_defines("LIBUS_USE_WOLFSSL")

@ -8,7 +8,7 @@ package("usockets")
add_versions("v0.8.8", "d14d2efe1df767dbebfb8d6f5b52aa952faf66b30c822fbe464debaa0c5c0b17")
add_configs("ssl", {description = "Select ssl library", default = nil, type = "string", values = {"openssl", "wolfssl", "boringssl"}})
add_configs("ssl", {description = "Select ssl library", default = nil, type = "string", values = {"openssl", "openssl3", "wolfssl", "boringssl"}})
add_configs("uv", {description = "Enable libuv", default = false, type = "boolean"})
add_configs("uring", {description = "Enable liburing", default = false, type = "boolean"})
add_configs("quic", {description = "Enable lsquic", default = false, type = "boolean"})
@ -17,7 +17,7 @@ package("usockets")
local ssl = package:config("ssl")
if ssl then
package:add("deps", ssl)
if ssl == "openssl" or ssl == "boringssl" then
if ssl == "openssl" or ssl == "openssl3" or ssl == "boringssl" then
package:add("defines", "LIBUS_USE_OPENSSL")
elseif ssl == "wolfssl" then
package:add("defines", "LIBUS_USE_WOLFSSL")

Loading…
Cancel
Save