Botan 2.13.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

init.h
Go to the documentation of this file.
1 /*
2 * Library Initialization
3 * (C) 1999-2008,2015 Jack Lloyd
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 */
7
8 #ifndef BOTAN_LIBRARY_INITIALIZER_H_
9 #define BOTAN_LIBRARY_INITIALIZER_H_
10
11 #include <botan/types.h>
12 #include <string>
13
14 namespace Botan {
15
16 BOTAN_DEPRECATED_HEADER(init.h)
17
18 /*
19 * Previously botan had state whose lifetime had to be explicitly
20 * managed by the application. As of 1.11.14 this is no longer the
21 * case, and this class is no longer needed and kept only for backwards
22 * compatibility.
23 */
24 class BOTAN_PUBLIC_API(2,0) BOTAN_DEPRECATED("LibraryInitializer is no longer required") LibraryInitializer final
25 {
26 public:
27 explicit LibraryInitializer(const std::string& /*ignored*/ = "") { }
28
29 static void initialize(const std::string& /*ignored*/ = "") {}
30 static void deinitialize() {}
31 };
32
33 }
34
35 #endif
Botan::LibraryInitializer::LibraryInitializer
LibraryInitializer(const std::string &="")
Definition: init.h:27
final
int(* final)(unsigned char *, CTX *)
Definition: commoncrypto_hash.cpp:28
BOTAN_PUBLIC_API
#define BOTAN_PUBLIC_API(maj, min)
Definition: compiler.h:31
Botan::LibraryInitializer::deinitialize
static void deinitialize()
Definition: init.h:30
Botan::LibraryInitializer::initialize
static void initialize(const std::string &="")
Definition: init.h:29
Botan
Definition: alg_id.cpp:13
BOTAN_DEPRECATED_HEADER
#define BOTAN_DEPRECATED_HEADER(hdr)
Definition: compiler.h:135
init
int(* init)(CTX *)
Definition: commoncrypto_hash.cpp:26
Botan::LibraryInitializer
Definition: init.h:24