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

Unified Diff: net/der/encode_values.cc

Issue 2138413002: Revert of Add CheckOCSPDateValid() to net/cert/internal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « net/der/encode_values.h ('k') | net/der/encode_values_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/der/encode_values.cc
diff --git a/net/der/encode_values.cc b/net/der/encode_values.cc
deleted file mode 100644
index af7098a23840e1fdfbcd2e07fb63afa98c4cbcfe..0000000000000000000000000000000000000000
--- a/net/der/encode_values.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/time/time.h"
-#include "net/der/encode_values.h"
-
-namespace net {
-
-namespace der {
-
-bool EncodeTimeAsGeneralizedTime(const base::Time& time,
- der::GeneralizedTime* generalized_time) {
- base::Time::Exploded exploded;
- time.UTCExplode(&exploded);
- if (!exploded.HasValidValues())
- return false;
-
- generalized_time->year = exploded.year;
- generalized_time->month = exploded.month;
- generalized_time->day = exploded.day_of_month;
- generalized_time->hours = exploded.hour;
- generalized_time->minutes = exploded.minute;
- generalized_time->seconds = exploded.second;
- return true;
-}
-
-} // namespace der
-
-} // namespace net
« no previous file with comments | « net/der/encode_values.h ('k') | net/der/encode_values_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698