blob: abbfbb2c646d1618b9d018e69ea0e5a2d4bdebeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*************************************************
* Module Factory Header File *
* (C) 1999-2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_MODULE_FACTORIES_H__
#define BOTAN_MODULE_FACTORIES_H__
#include <botan/init.h>
#include <botan/mutex.h>
#include <string>
#include <vector>
namespace Botan {
/*************************************************
* Module Builder Interface *
*************************************************/
class BOTAN_DLL Modules
{
public:
virtual class Mutex_Factory* mutex_factory(bool) const = 0;
virtual std::string default_allocator() const = 0;
virtual std::vector<class Allocator*>
allocators(Mutex_Factory*) const = 0;
virtual std::vector<class Engine*> engines() const = 0;
virtual ~Modules() {}
};
/*************************************************
* Built In Modules *
*************************************************/
class BOTAN_DLL Builtin_Modules : public Modules
{
public:
class Mutex_Factory* mutex_factory(bool) const;
std::string default_allocator() const;
std::vector<class Allocator*> allocators(Mutex_Factory*) const;
std::vector<class Engine*> engines() const;
Builtin_Modules(const InitializerOptions&);
private:
const bool should_lock, use_engines;
};
}
#endif
|