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

Unified Diff: net/der/input.cc

Issue 1125333005: RFC 2459 name comparison. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios copy_test_data Created 5 years, 4 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
Index: net/der/input.cc
diff --git a/net/der/input.cc b/net/der/input.cc
index 45edfdcca67fde5ad002f151d6f2deb7e39c0870..75d1c9c1847e37b383c23d53a08cf1d17f2948c1 100644
--- a/net/der/input.cc
+++ b/net/der/input.cc
@@ -23,6 +23,10 @@ bool Input::Equals(const Input& other) const {
return memcmp(data_, other.data_, len_) == 0;
}
+std::string Input::AsString() const {
+ return std::string(reinterpret_cast<const char*>(data_), len_);
+}
+
ByteReader::ByteReader(const Input& in)
: data_(in.UnsafeData()), len_(in.Length()) {
}

Powered by Google App Engine
This is Rietveld 408576698