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

Unified Diff: net/der/parse_values.h

Issue 2075783002: Adding additional comparison operators for GeneralizedTime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unittest. Created 4 years, 6 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
« no previous file with comments | « no previous file | net/der/parse_values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/der/parse_values.h
diff --git a/net/der/parse_values.h b/net/der/parse_values.h
index 4f503566dfde8530fd3d78feaa23f4bf2a7d1bce..161b098ecbe08f314e5fcc5508f04a6b7c143cb6 100644
--- a/net/der/parse_values.h
+++ b/net/der/parse_values.h
@@ -98,6 +98,12 @@ struct GeneralizedTime {
NET_EXPORT_PRIVATE bool operator<(const GeneralizedTime& lhs,
const GeneralizedTime& rhs);
+NET_EXPORT_PRIVATE bool operator<=(const GeneralizedTime& lhs,
+ const GeneralizedTime& rhs);
+NET_EXPORT_PRIVATE bool operator>(const GeneralizedTime& lhs,
+ const GeneralizedTime& rhs);
+NET_EXPORT_PRIVATE bool operator>=(const GeneralizedTime& lhs,
+ const GeneralizedTime& rhs);
// Reads a DER-encoded ASN.1 UTCTime value from |in| and puts the resulting
// value in |out|, returning true if the UTCTime could be parsed successfully.
« no previous file with comments | « no previous file | net/der/parse_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698