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

Unified Diff: net/der/parse_values.cc

Issue 2091103002: Add CheckOCSPDateValid() to net/cert/internal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« net/der/parse_values.h ('K') | « net/der/parse_values.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/der/parse_values.cc
diff --git a/net/der/parse_values.cc b/net/der/parse_values.cc
index 903daafdc0d7221e29607486f46e6064c795564e..91f325aff7077aed83a1f574f1a5d536aec60ba6 100644
--- a/net/der/parse_values.cc
+++ b/net/der/parse_values.cc
@@ -383,6 +383,20 @@ bool ParseGeneralizedTime(const Input& in, GeneralizedTime* value) {
return true;
}
+der::GeneralizedTime ConvertBaseUTCTime(const base::Time& time) {
svaldez 2016/06/24 13:40:46 Might need a basic unittest.
+ base::Time::Exploded exploded;
+ time.UTCExplode(&exploded);
+
+ der::GeneralizedTime result;
+ result.year = exploded.year;
+ result.month = exploded.month;
+ result.day = exploded.day_of_month;
+ result.hours = exploded.hour;
+ result.minutes = exploded.minute;
+ result.seconds = exploded.second;
+ return result;
+}
+
} // namespace der
} // namespace net
« net/der/parse_values.h ('K') | « net/der/parse_values.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698