| 90 | } |
| 91 | |
| 92 | void 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 | |
| 102 | template <> |
| 103 | struct fmt::formatter<tcp::endpoint> { |
no test coverage detected