aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1_tm.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-01 21:09:54 +0000
committerlloyd <[email protected]>2006-07-01 21:09:54 +0000
commit6d3a4de1efcb6b04a1ab87037d487f979d7ca445 (patch)
tree02342b193a3808d2010b441480f65aa45a23dc92 /src/asn1_tm.cpp
parent3d1d14cf405111e30643cf4c7674d441cc07a2e0 (diff)
Access the global configuration through an object reference instead
of stand-alone functions. Store the configuration in a distinct object, rather than just a map inside the library state.
Diffstat (limited to 'src/asn1_tm.cpp')
-rw-r--r--src/asn1_tm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/asn1_tm.cpp b/src/asn1_tm.cpp
index c9315d739..624478386 100644
--- a/src/asn1_tm.cpp
+++ b/src/asn1_tm.cpp
@@ -292,7 +292,9 @@ bool operator>=(const X509_Time& t1, const X509_Time& t2)
s32bit validity_check(const X509_Time& start, const X509_Time& end,
u64bit current_time)
{
- const u32bit ALLOWABLE_SLIP = Config::get_time("x509/validity_slack");
+ const u32bit ALLOWABLE_SLIP =
+ global_config().option_as_time("x509/validity_slack");
+
const s32bit NOT_YET_VALID = -1, VALID_TIME = 0, EXPIRED = 1;
if(start.cmp(current_time + ALLOWABLE_SLIP) > 0)