32 #include <sys/types.h> 59 LOG(
WARNING) <<
"SSLServerAcceptCallbackBase::acceptError " << ex.what();
69 LOG(
INFO) <<
"Connection accepted";
74 }
catch (
const std::exception& e) {
75 LOG(ERROR) <<
"Exception %s caught while creating a AsyncSSLSocket " 86 virtual void connAccepted(
const std::shared_ptr<AsyncSSLSocket>&
s) = 0;
96 std::shared_ptr<SSLContext>
ctx_;
107 bool enableTFO =
false);
110 std::shared_ptr<SSLContext> ctx,
111 bool enableTFO =
false);
120 void loadTestCerts();
128 std::shared_ptr<SSLContext>
ctx_;
virtual void connAccepted(const std::shared_ptr< AsyncSSLSocket > &s)=0
std::shared_ptr< AsyncSSLSocket > socket_
SSLServerAcceptCallbackBase(HandshakeCallback *hcb)
#define EXPECT_EQ(val1, val2)
const char * kClientTestKey
EventBase & getEventBase()
—— Concurrent Priority Queue Implementation ——
SSLServerAcceptCallbackBase * acb_
requires E e noexcept(noexcept(s.error(std::move(e))))
const char * kClientTestCert
void connectionAccepted(int fd, const SocketAddress &) noexceptoverride
static std::shared_ptr< AsyncSSLSocket > newSocket(const std::shared_ptr< folly::SSLContext > &ctx, EventBase *evb, int fd, bool server=true, bool deferSecurityNegotiation=false)
std::shared_ptr< SSLContext > ctx_
~SSLServerAcceptCallbackBase() override
void init(int *argc, char ***argv, bool removeFlags)
void acceptError(const std::exception &ex) noexceptoverride
std::shared_ptr< AsyncServerSocket > socket_
const char * kClientTestCA
int close(NetworkSocket s)
const SocketAddress & getAddress() const
std::shared_ptr< SSLContext > ctx_