aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509opt.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/x509opt.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/x509opt.cpp')
-rw-r--r--src/x509opt.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/x509opt.cpp b/src/x509opt.cpp
index 65cc16c19..4c8abf53c 100644
--- a/src/x509opt.cpp
+++ b/src/x509opt.cpp
@@ -79,8 +79,10 @@ void X509_Cert_Options::sanity_check() const
*************************************************/
X509_Cert_Options::X509_Cert_Options(const std::string& initial_opts)
{
- const u32bit DEFAULT_EXPIRE = Config::get_time("x509/ca/default_expire");
- const u32bit OFFSET_FROM_NOW = Config::get_time("x509/ca/signing_offset");
+ const u32bit DEFAULT_EXPIRE =
+ global_config().option_as_time("x509/ca/default_expire");
+ const u32bit OFFSET_FROM_NOW =
+ global_config().option_as_time("x509/ca/signing_offset");
is_CA = false;
path_limit = 0;