| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_DER_ENCODE_VALUES_H_ | 5 #ifndef NET_DER_ENCODE_VALUES_H_ |
| 6 #define NET_DER_ENCODE_VALUES_H_ | 6 #define NET_DER_ENCODE_VALUES_H_ |
| 7 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class Time; | 11 class Time; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 namespace der { | 16 namespace der { |
| 17 | 17 |
| 18 struct GeneralizedTime; | 18 struct GeneralizedTime; |
| 19 | 19 |
| 20 // Encodes |time|, a UTC-based time, to DER |generalized_time|, for comparing | 20 // Encodes |time|, a UTC-based time, to DER |generalized_time|, for comparing |
| 21 // against other GeneralizedTime objects. | 21 // against other GeneralizedTime objects. |
| 22 NET_EXPORT bool EncodeTimeAsGeneralizedTime(const base::Time& time, | 22 NET_EXPORT bool EncodeTimeAsGeneralizedTime(const base::Time& time, |
| 23 GeneralizedTime* generalized_time); | 23 GeneralizedTime* generalized_time); |
| 24 | 24 |
| 25 } // namespace der | 25 } // namespace der |
| 26 | 26 |
| 27 } // namespace net | 27 } // namespace net |
| 28 | 28 |
| 29 #endif // NET_DER_ENCODE_VALUES_H | 29 #endif // NET_DER_ENCODE_VALUES_H_ |
| OLD | NEW |