diff options
author | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
commit | 6d3a4de1efcb6b04a1ab87037d487f979d7ca445 (patch) | |
tree | 02342b193a3808d2010b441480f65aa45a23dc92 /src/x509stor.cpp | |
parent | 3d1d14cf405111e30643cf4c7674d441cc07a2e0 (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/x509stor.cpp')
-rw-r--r-- | src/x509stor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/x509stor.cpp b/src/x509stor.cpp index 1be8ec85d..350cf965e 100644 --- a/src/x509stor.cpp +++ b/src/x509stor.cpp @@ -658,7 +658,9 @@ bool X509_Store::Cert_Info::is_verified() const if(result != VERIFIED && result != CERT_NOT_YET_VALID) return true; - const u32bit CACHE_TIME = Config::get_time("x509/cache_verify_results"); + const u32bit CACHE_TIME = + global_config().option_as_time("x509/cache_verify_results"); + const u64bit current_time = system_time(); if(current_time > last_checked + CACHE_TIME) |