20 const char*
kTestCert =
"folly/io/async/test/certs/tests-cert.pem";
21 const char*
kTestKey =
"folly/io/async/test/certs/tests-key.pem";
22 const char*
kTestCA =
"folly/io/async/test/certs/ca-cert.pem";
26 const char*
kClientTestCA =
"folly/io/async/test/certs/client_ca_cert.pem";
31 LOG(
INFO) <<
"Waiting for server thread to exit";
39 ctx_ = std::make_shared<SSLContext>();
40 ctx_->loadCertificate(kTestCert);
41 ctx_->loadPrivateKey(kTestKey);
42 ctx_->ciphers(
"ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH");
48 ctx_->loadCertificate(kTestCert);
49 ctx_->loadPrivateKey(kTestKey);
54 std::shared_ptr<SSLContext> ctx,
68 LOG(
INFO) <<
"server TFO enabled";
69 socket_->setTFOEnabled(
true, 1000);
82 LOG(
INFO) <<
"Server thread exited event loop";
const char * kClientTestKey
—— Concurrent Priority Queue Implementation ——
SSLServerAcceptCallbackBase * acb_
const char * kClientTestCert
std::shared_ptr< SSLContext > ctx_
bool runInEventBaseThread(void(*fn)(T *), T *arg)
std::shared_ptr< AsyncServerSocket > socket_
static std::shared_ptr< AsyncServerSocket > newSocket(EventBase *evb=nullptr)
TestSSLServer(SSLServerAcceptCallbackBase *acb, bool enableTFO=false)
const char * kClientTestCA
std::shared_ptr< SSLContext > ctx_