Index: webrtc/base/sslidentity.cc |
diff --git a/webrtc/base/sslidentity.cc b/webrtc/base/sslidentity.cc |
index 5fa8bbf6b432051f6984c8aa30918e50bfac09c6..5f3a73fad17b8535d6630eeb986f36d095259069 100644 |
--- a/webrtc/base/sslidentity.cc |
+++ b/webrtc/base/sslidentity.cc |
@@ -187,6 +187,14 @@ SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, |
return OpenSSLIdentity::FromPEMStrings(private_key, certificate); |
} |
+bool operator==(const SSLIdentity& a, const SSLIdentity& b) { |
+ return static_cast<const OpenSSLIdentity&>(a) == |
+ static_cast<const OpenSSLIdentity&>(b); |
+} |
+bool operator!=(const SSLIdentity& a, const SSLIdentity& b) { |
+ return !(a == b); |
+} |
+ |
#else // !SSL_USE_OPENSSL |
#error "No SSL implementation" |