Add a const getter for X509 used in handshake (server-side)
[folly.git] / folly / io / async / AsyncSSLSocket.h
index eb6251c71eee087b4c156dc1680892db51b71e86..0efd73bdc9f9b31b8742cef54a95fdc911c90267 100644 (file)
@@ -457,6 +457,11 @@ class AsyncSSLSocket : public virtual AsyncSocket {
    */
   int getSSLCertSize() const;
 
+  /**
+   * Get the certificate used for this SSL connection. May be null
+   */
+  virtual const X509* getSelfCert() const override;
+
   virtual void attachEventBase(EventBase* eventBase) override {
     AsyncSocket::attachEventBase(eventBase);
     handshakeTimeout_.attachEventBase(eventBase);