Commit 04b39900 authored by Kyle Nekritz's avatar Kyle Nekritz Committed by facebook-github-bot-0

Add security protocol trace event.

Reviewed By: siyengar

Differential Revision: D2805183

fb-gh-sync-id: 9ed320dd3762658e993daa658100d0c3c617d210
parent 10627e03
...@@ -275,6 +275,8 @@ class AsyncSSLSocket : public virtual AsyncSocket { ...@@ -275,6 +275,8 @@ class AsyncSSLSocket : public virtual AsyncSocket {
virtual bool connecting() const override; virtual bool connecting() const override;
virtual std::string getApplicationProtocol() noexcept override; virtual std::string getApplicationProtocol() noexcept override;
virtual std::string getSecurityProtocol() const override { return "TLS"; }
bool isEorTrackingEnabled() const override; bool isEorTrackingEnabled() const override;
virtual void setEorTracking(bool track) override; virtual void setEorTracking(bool track) override;
virtual size_t getRawBytesWritten() const override; virtual size_t getRawBytesWritten() const override;
......
...@@ -573,6 +573,11 @@ class AsyncTransportWrapper : virtual public AsyncTransport, ...@@ -573,6 +573,11 @@ class AsyncTransportWrapper : virtual public AsyncTransport,
virtual std::string getApplicationProtocol() noexcept { virtual std::string getApplicationProtocol() noexcept {
return ""; return "";
} }
/**
* Returns the name of the security protocol being used.
*/
virtual std::string getSecurityProtocol() const { return ""; }
}; };
} // folly } // folly
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment