blob: f00f97f9e0d00b496d5e6459d4883d01ba96345a (
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
|
/*************************************************
* Library Initialization Header File *
* (C) 1999-2006 The Botan Project *
*************************************************/
#ifndef BOTAN_INIT_H__
#define BOTAN_INIT_H__
#include <string>
#include <map>
namespace Botan {
/*************************************************
* Options for initializing the library *
*************************************************/
class InitializerOptions
{
public:
bool thread_safe() const;
bool use_engines() const;
bool seed_rng() const;
std::string config_file() const;
InitializerOptions(const std::string&);
private:
bool boolean_arg(const std::string&) const;
std::map<std::string, std::string> args;
};
/*************************************************
* Library Initialization/Shutdown Object *
*************************************************/
class LibraryInitializer
{
public:
LibraryInitializer(const InitializerOptions&);
~LibraryInitializer();
};
namespace Init {
/*************************************************
* Main Library Initialization/Shutdown Functions *
*************************************************/
void initialize(const InitializerOptions&);
void deinitialize();
}
}
#endif
|