From: Kyle Nekritz Date: Mon, 11 Jan 2016 00:33:45 +0000 (-0800) Subject: Add security protocol trace event. X-Git-Tag: deprecate-dynamic-initializer~160 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=04b39900cb48c004d5b52086f6800cf9b55abaa5 Add security protocol trace event. Reviewed By: siyengar Differential Revision: D2805183 fb-gh-sync-id: 9ed320dd3762658e993daa658100d0c3c617d210 --- diff --git a/folly/io/async/AsyncSSLSocket.h b/folly/io/async/AsyncSSLSocket.h index ba7485ae..ad2a9799 100644 --- a/folly/io/async/AsyncSSLSocket.h +++ b/folly/io/async/AsyncSSLSocket.h @@ -275,6 +275,8 @@ class AsyncSSLSocket : public virtual AsyncSocket { virtual bool connecting() const override; virtual std::string getApplicationProtocol() noexcept override; + virtual std::string getSecurityProtocol() const override { return "TLS"; } + bool isEorTrackingEnabled() const override; virtual void setEorTracking(bool track) override; virtual size_t getRawBytesWritten() const override; diff --git a/folly/io/async/AsyncTransport.h b/folly/io/async/AsyncTransport.h index f3eebfc7..515656b8 100644 --- a/folly/io/async/AsyncTransport.h +++ b/folly/io/async/AsyncTransport.h @@ -573,6 +573,11 @@ class AsyncTransportWrapper : virtual public AsyncTransport, virtual std::string getApplicationProtocol() noexcept { return ""; } + + /** + * Returns the name of the security protocol being used. + */ + virtual std::string getSecurityProtocol() const { return ""; } }; } // folly