From 0a9ee0e122aed780e6da5428fe0f0a007c84b87b Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 28 Jul 2006 14:13:44 +0000 Subject: Change Builtin_Module constructor to take an InitializerOptions instead of just a boolean, so it can (if desired) examine any arguments it likes. Only run the startup self tests if the selftest or fips140 option is toggled on. --- src/modules.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 48b043afe..47a62c13f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -213,4 +213,12 @@ Charset_Transcoder* Builtin_Modules::transcoder() const return new Default_Charset_Transcoder; } +/************************************************* +* Builtin_Modules Constructor * +*************************************************/ +Builtin_Modules::Builtin_Modules(const InitializerOptions& args) : + should_lock(args.secure_memory()) + { + } + } -- cgit v1.2.3