Botan 2.1.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 /*
17 * Previously botan had state whose lifetime had to be explicitly
18 * managed by the application. As of 1.11.14 this is no longer the
19 * case, and this class is no longer needed and kept only for backwards
20 * compatibility.
21 */
22 class BOTAN_DLL BOTAN_DEPRECATED("LibraryInitializer is no longer required") LibraryInitializer
23 {
24 public:
25 explicit LibraryInitializer(const std::string& /*ignored*/ = "") { }
26
27 static void initialize(const std::string& /*ignored*/ = "") {}
28 static void deinitialize() {}
29 };
30
31 }
32
33 #endif
Botan::BOTAN_DEPRECATED
class BOTAN_DLL BOTAN_DEPRECATED("LibraryInitializer is no longer required") LibraryInitializer
Definition: init.h:22
Botan
Definition: alg_id.cpp:13