MCPcopy Create free account
hub / github.com/apple/foundationdb / initSslContext

Function initSslContext

flow/TLSTest.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void initSslContext(ssl::context& ctx,
93 mkcert::CertChainRef myChain,
94 mkcert::CertChainRef peerChain,
95 mkcert::ESide side) {
96 ctx.set_options(ssl::context::default_workarounds);
97 ctx.set_verify_mode(ssl::context::verify_peer |
98 (side == mkcert::ESide::Server ? 0 : ssl::verify_fail_if_no_peer_cert));
99 initCerts(ctx, myChain, peerChain.empty() ? StringRef() : peerChain.back().certPem);
100}
101
102template <>
103struct fmt::formatter<tcp::endpoint> {

Callers 1

runTlsTestFunction · 0.85

Calls 4

initCertsFunction · 0.85
StringRefClass · 0.50
emptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected