aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509_ca.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-02 05:37:28 +0000
committerlloyd <[email protected]>2008-05-02 05:37:28 +0000
commit2088b737da27bf8bf035837ae4ea3e4f3c4b0bc0 (patch)
tree8a89b4a48847dedbfcedd5ecbb6e68dc5b29c8cb /src/x509_ca.cpp
parent250cb392d6bdd29adea28b0f9a5562a880656dca (diff)
Remove Config::option_as_time, instead call timespec_to_u32bit in
each caller.
Diffstat (limited to 'src/x509_ca.cpp')
-rw-r--r--src/x509_ca.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/x509_ca.cpp b/src/x509_ca.cpp
index 4e873c31f..13e1520a1 100644
--- a/src/x509_ca.cpp
+++ b/src/x509_ca.cpp
@@ -4,6 +4,7 @@
*************************************************/
#include <botan/x509_ca.h>
+#include <botan/libstate.h>
#include <botan/x509stor.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
@@ -11,7 +12,7 @@
#include <botan/lookup.h>
#include <botan/look_pk.h>
#include <botan/numthry.h>
-#include <botan/libstate.h>
+#include <botan/parsing.h>
#include <botan/oids.h>
#include <botan/util.h>
#include <algorithm>
@@ -179,8 +180,10 @@ X509_CRL X509_CA::make_crl(const std::vector<CRL_Entry>& revoked,
const u32bit X509_CRL_VERSION = 2;
if(next_update == 0)
- next_update = global_config().option_as_time("x509/crl/next_update");
+ next_update = timespec_to_u32bit(
+ global_config().option("x509/crl/next_update"));
+ // Totally stupid: ties encoding logic to the return of std::time!!
const u64bit current_time = system_time();
Extensions extensions;