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

Unified Diff: net/der/parse_values.h

Issue 2040513003: Implement Expect-Staple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move OCSP into cert_verify_proc 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
Index: net/der/parse_values.h
diff --git a/net/der/parse_values.h b/net/der/parse_values.h
index 161b098ecbe08f314e5fcc5508f04a6b7c143cb6..6d6b07ad83cfb448a2a1837c367f6bd9f593be11 100644
--- a/net/der/parse_values.h
+++ b/net/der/parse_values.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/compiler_specific.h"
+#include "base/time/time.h"
#include "net/base/net_export.h"
#include "net/der/input.h"
@@ -125,6 +126,13 @@ NET_EXPORT bool ParseUTCTimeRelaxed(const Input& in,
NET_EXPORT bool ParseGeneralizedTime(const Input& in,
GeneralizedTime* out) WARN_UNUSED_RESULT;
+// Converts an exploded time to a GeneralizedTime.
+NET_EXPORT der::GeneralizedTime ConvertBaseTime(
+ const base::Time::Exploded& exploded);
+
+// Converts a base::Time assuming the time is in UTC.
+NET_EXPORT der::GeneralizedTime ConvertBaseUTCTime(const base::Time& time);
+
} // namespace der
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698