Skip to content

Commit 9bee911

Browse files
System Administratorde pinxi
authored andcommitted
Add --apple-secure-transport=yes|no
Toggle support of Apple SecureTransport in curl
1 parent 64aca61 commit 9bee911

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

contrib/curl/premake5.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ project "curl-lib"
2222
defines { "USE_SCHANNEL", "USE_WINDOWS_SSPI" }
2323
links { "crypt32", "bcrypt" }
2424

25-
filter { "system:macosx" }
25+
filter { "system:macosx", "options:apple-secure-transport=yes" }
2626
defines { "USE_SECTRANSP" }
2727

2828
filter { "system:not windows", "system:not macosx" }

premake5.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,16 @@ newoption {
129129
_OPTIONS["zlib-src"] = "none"
130130
end
131131

132+
newoption {
133+
trigger = "apple-secure-transport",
134+
allowed = {
135+
{"yes", "Yes"},
136+
{"no", "No"}
137+
},
138+
default = "yes",
139+
description = "Disable DarwinSSL support in curl"
140+
}
141+
132142
newoption {
133143
trigger = "no-luasocket",
134144
description = "Disable Luasocket 3rd party lib"

0 commit comments

Comments
 (0)