X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fio%2Fasync%2FAsyncSSLSocket.cpp;h=4bb8a9b43525a37d0f80d95d20b4f357f365003b;hb=5bb0e1da38dd1c5c9ef4619da8aad99ccfd30cf2;hp=a30cc7cabf895b1bc0fca9339d1337a825115c50;hpb=fbc4c23895b0ee3874d9a36401d580a2a8957ba9;p=folly.git diff --git a/folly/io/async/AsyncSSLSocket.cpp b/folly/io/async/AsyncSSLSocket.cpp index a30cc7ca..4bb8a9b4 100644 --- a/folly/io/async/AsyncSSLSocket.cpp +++ b/folly/io/async/AsyncSSLSocket.cpp @@ -24,8 +24,10 @@ #include #include #include +#include #include +#include #include #include #include @@ -183,7 +185,7 @@ static BIO_METHOD* getSSLBioMethod() { return instance; } -void* initsslBioMethod(void) { +void* initsslBioMethod() { auto sslBioMethod = getSSLBioMethod(); // override the bwrite method for MSG_EOR support OpenSSLUtils::setCustomBioWriteMethod(sslBioMethod, AsyncSSLSocket::bioWrite); @@ -1715,7 +1717,7 @@ int AsyncSSLSocket::sslVerifyCallback( void AsyncSSLSocket::enableClientHelloParsing() { parseClientHello_ = true; - clientHelloInfo_.reset(new ssl::ClientHelloInfo()); + clientHelloInfo_ = std::make_unique(); } void AsyncSSLSocket::resetClientHelloParsing(SSL *ssl) {