aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/x509self/x509opt.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-07-12 11:52:39 +0000
committerlloyd <[email protected]>2011-07-12 11:52:39 +0000
commit9e84dbf6c6ee9297f2a707f49d1cf175b6e149a5 (patch)
treee93fc28388c762d11bae0a52edcc17576a2ae1f6 /src/cert/x509self/x509opt.cpp
parent82e218500e6f305d02feecc000b43a5d9448e11a (diff)
parentdcc7e959eff557811c3cf414adde096285821816 (diff)
propagate from branch 'net.randombit.botan' (head 23a326fa36a31dd39347a8864e1f5740669a905e)
to branch 'net.randombit.botan.cxx11' (head 9d3ac8dd45f7673c85dca41968e7750acc90bdff)
Diffstat (limited to 'src/cert/x509self/x509opt.cpp')
-rw-r--r--src/cert/x509self/x509opt.cpp8
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;