/************************************************* * Module Factory Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_MODULE_FACTORIES_H__ #define BOTAN_MODULE_FACTORIES_H__ #include #include #include namespace Botan { /************************************************* * Module Builder Interface * *************************************************/ class BOTAN_DLL Modules { public: virtual class Mutex_Factory* mutex_factory() const = 0; virtual std::string default_allocator() const = 0; virtual std::vector allocators() const = 0; virtual std::vector entropy_sources() const = 0; virtual std::vector engines() const = 0; virtual ~Modules() {} }; /************************************************* * Built In Modules * *************************************************/ class BOTAN_DLL Builtin_Modules : public Modules { public: class Mutex_Factory* mutex_factory() const; std::string default_allocator() const; std::vector allocators() const; std::vector entropy_sources() const; std::vector engines() const; Builtin_Modules(const InitializerOptions&); private: const bool should_lock, use_engines; }; } #endif