Skip to content

Commit bc2190b

Browse files
committed
Init safe tls.
1 parent 3c87f77 commit bc2190b

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/sw.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: CI
2-
31
on: [push]
42

53
jobs:

src/client/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ int main(int argc, char *argv[])
295295

296296
httpSettings.verbose = options["curl-verbose"].as<bool>();
297297
httpSettings.ignore_ssl_checks = options["ignore-ssl-checks"].as<bool>();
298+
primitives::http::setupSafeTls(false, false, get_root_directory() / "roots.pem");
298299

299300
// always first
300301
if (!r || options().count("help"))

sw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void build(Solution &s)
77
p += Git("https://github.com/cppan/cppan", "", "v1");
88

99
auto &common = p.addTarget<StaticLibraryTarget>("common");
10-
common.CPPVersion = CPPLanguageStandard::CPP17;
10+
common += cpp17;
1111
common +=
1212
"src/common/.*"_rr,
1313
"src/printers/.*"_rr,
@@ -69,7 +69,7 @@ void build(Solution &s)
6969
fc2->addOutput(common.BinaryDir / "comments/lexer.h");
7070

7171
auto &client = p.addTarget<ExecutableTarget>("client");
72-
client.CPPVersion = CPPLanguageStandard::CPP17;
72+
client += cpp17;
7373

7474
// for rc.exe
7575
client += "VERSION_MAJOR=0"_d;

0 commit comments

Comments
 (0)