Index: webrtc/p2p/base/transport.h |
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h |
index 8b30127b7f9e7c83cb2b76df09f52224f8aedd86..8647ec740a7fe3ce8d624940bd778b4a5e532ba9 100644 |
--- a/webrtc/p2p/base/transport.h |
+++ b/webrtc/p2p/base/transport.h |
@@ -312,6 +312,20 @@ class Transport : public sigslot::has_slots<> { |
TransportChannelImpl* channel, |
std::string* error_desc); |
+ // Returns false if the certificate's identity does not match the fingerprint, |
+ // or either is NULL. |
+ virtual bool VerifyCertificateFingerprint( |
+ const rtc::RTCCertificate* certificate, |
+ const rtc::SSLFingerprint* fingerprint, |
+ std::string* error_desc) const; |
+ |
+ // Negotiates the SSL role based off the offer and answer as specified by |
+ // RFC 4145, section-4.1. Returns false if the SSL role cannot be determined |
+ // from the local description and remote description. |
+ virtual bool NegotiateRole(ContentAction local_role, |
+ rtc::SSLRole* ssl_role, |
+ std::string* error_desc) const; |
+ |
private: |
// If a candidate is not acceptable, returns false and sets error. |
// Call this before calling OnRemoteCandidates. |