Index: net/base/x509_certificate.h |
=================================================================== |
--- net/base/x509_certificate.h (revision 19002) |
+++ net/base/x509_certificate.h (working copy) |
@@ -5,6 +5,8 @@ |
#ifndef NET_BASE_X509_CERTIFICATE_H_ |
#define NET_BASE_X509_CERTIFICATE_H_ |
+#include <string.h> |
+ |
#include <map> |
#include <set> |
#include <string> |
@@ -36,6 +38,10 @@ |
public: |
// SHA-1 fingerprint (160 bits) of a certificate. |
struct Fingerprint { |
+ bool operator==(const Fingerprint& other) const { |
+ return memcmp(data, other.data, sizeof(data)) == 0; |
+ } |
+ |
unsigned char data[20]; |
}; |