aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-28 14:13:44 +0000
committerlloyd <[email protected]>2006-07-28 14:13:44 +0000
commit0a9ee0e122aed780e6da5428fe0f0a007c84b87b (patch)
tree0f26da86ec14ec9d7a9f40fc8b18c586bd883f59 /src/modules.cpp
parent2b4733d5893f0301b15f987c3309befc88eeb768 (diff)
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.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp8
1 files changed, 8 insertions, 0 deletions
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())
+ {
+ }
+
}