Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: net/der/input.cc

Issue 1541213002: Adding OCSP Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix break condition. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/der/input.h ('K') | « net/der/input.h ('k') | net/der/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/der/input.cc
diff --git a/net/der/input.cc b/net/der/input.cc
index 5065ccaca93e9bdc3ffc06b5af2eaa332d57f1ae..baf9731141f2f7d1a0f56071eda9e75a13021f10 100644
--- a/net/der/input.cc
+++ b/net/der/input.cc
@@ -25,6 +25,10 @@ bool Input::Equals(const Input& other) const {
return memcmp(data_, other.data_, len_) == 0;
}
+bool Input::operator==(const Input& other) const {
+ return Equals(other);
+}
+
std::string Input::AsString() const {
return std::string(reinterpret_cast<const char*>(data_), len_);
}
« net/der/input.h ('K') | « net/der/input.h ('k') | net/der/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698