diff options
author | lloyd <[email protected]> | 2011-06-17 16:03:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-06-17 16:03:16 +0000 |
commit | 41a11496d5594d8ea5c7879804a540f482033644 (patch) | |
tree | c99fbbc1691ae8b3593aa73a007f0658b72f0354 /src/cert/x509self/x509opt.cpp | |
parent | 9fd0362d65435adf377ed1e4b85f010737b7def0 (diff) | |
parent | 6aac9723c9c286b5486e970e496daf7d01d83f4b (diff) |
propagate from branch 'net.randombit.botan' (head 5dc30d88afdeec4896b5065f9260e66d52b1a730)
to branch 'net.randombit.botan.cxx11' (head 8d42792537db92fab3136f5696ee1eba3e73fa76)
Diffstat (limited to 'src/cert/x509self/x509opt.cpp')
-rw-r--r-- | src/cert/x509self/x509opt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cert/x509self/x509opt.cpp b/src/cert/x509self/x509opt.cpp index 345df1fe0..8a27fdbde 100644 --- a/src/cert/x509self/x509opt.cpp +++ b/src/cert/x509self/x509opt.cpp @@ -8,7 +8,7 @@ #include <botan/x509self.h> #include <botan/oids.h> #include <botan/parsing.h> -#include <botan/time.h> +#include <chrono> namespace Botan { @@ -78,16 +78,16 @@ void X509_Cert_Options::sanity_check() const * Initialize the certificate options */ X509_Cert_Options::X509_Cert_Options(const std::string& initial_opts, - u32bit expiration_time_in_seconds) + u32bit expiration_time) { is_CA = false; path_limit = 0; constraints = NO_CONSTRAINTS; - const u64bit now = system_time(); + auto now = std::chrono::system_clock::now(); start = X509_Time(now); - end = X509_Time(now + expiration_time_in_seconds); + end = X509_Time(now + std::chrono::seconds(expiration_time)); if(initial_opts == "") return; |