Skip to content

Commit

Permalink
usockets: support openssl3 (#4804)
Browse files Browse the repository at this point in the history
  • Loading branch information
1143910315 authored Jul 31, 2024
1 parent 07edd53 commit 8c27be5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/u/usockets/port/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions packages/u/usockets/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand All @@ -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")
Expand Down

0 comments on commit 8c27be5

Please sign in to comment.