Index: webrtc/rtc_base/ssladapter.h |
diff --git a/webrtc/rtc_base/ssladapter.h b/webrtc/rtc_base/ssladapter.h |
index 87e7debc7659f39e41c84260d7187417b1f42984..b30e176c4528c882c5251617a761b7ada9af4e1f 100644 |
--- a/webrtc/rtc_base/ssladapter.h |
+++ b/webrtc/rtc_base/ssladapter.h |
@@ -47,8 +47,8 @@ class SSLAdapter : public AsyncSocketAdapter { |
// Do not call these methods in production code. |
// TODO(juberti): Remove the opportunistic encryption mechanism in |
// BasicPacketSocketFactory that uses this function. |
- bool ignore_bad_cert() const { return ignore_bad_cert_; } |
- void set_ignore_bad_cert(bool ignore) { ignore_bad_cert_ = ignore; } |
+ virtual void SetIgnoreBadCert(bool ignore) = 0; |
+ virtual void SetAlpnProtocols(const std::vector<std::string>& protos) = 0; |
// Do DTLS or TLS (default is TLS, if unspecified) |
virtual void SetMode(SSLMode mode) = 0; |
@@ -76,10 +76,6 @@ class SSLAdapter : public AsyncSocketAdapter { |
// and deletes |socket|. Otherwise, the returned SSLAdapter takes ownership |
// of |socket|. |
static SSLAdapter* Create(AsyncSocket* socket); |
- |
- private: |
- // If true, the server certificate need not match the configured hostname. |
- bool ignore_bad_cert_ = false; |
}; |
/////////////////////////////////////////////////////////////////////////////// |