diff options
author | lloyd <[email protected]> | 2009-12-01 13:28:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-01 13:28:16 +0000 |
commit | fe0276ee115bb367810ac2e06833fed297eb1715 (patch) | |
tree | 2adf34a771c5dc460f559deb33afd29501fea802 /src/cert/x509/crl_ent.cpp | |
parent | 4aec044fc21526e1c9185b384f7e984b7f8622c7 (diff) |
Remove system_time(), replace entirely with std::chrono.
Only remaining use of time.h/ctime is to convert from a time point to
a calendar value, which still requires C's gmtime. Hide it entirely in
time.cpp and return a calendar_point struct instead of a std::tm.
Diffstat (limited to 'src/cert/x509/crl_ent.cpp')
-rw-r--r-- | src/cert/x509/crl_ent.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cert/x509/crl_ent.cpp b/src/cert/x509/crl_ent.cpp index 42a742ebb..e7ce1a57a 100644 --- a/src/cert/x509/crl_ent.cpp +++ b/src/cert/x509/crl_ent.cpp @@ -11,7 +11,6 @@ #include <botan/ber_dec.h> #include <botan/bigint.h> #include <botan/oids.h> -#include <botan/time.h> namespace Botan { @@ -31,7 +30,7 @@ CRL_Entry::CRL_Entry(const X509_Certificate& cert, CRL_Code why) : throw_on_unknown_critical(false) { serial = cert.serial_number(); - time = X509_Time(system_time()); + time = X509_Time(std::chrono::system_clock::now()); reason = why; } |