Botan  2.6.0
Crypto and TLS for C++11
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_PUBLIC_API(2,0) BOTAN_DEPRECATED("LibraryInitializer is no longer required") LibraryInitializer final
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
LibraryInitializer(const std::string &="")
Definition: init.h:25
#define BOTAN_PUBLIC_API(maj, min)
Definition: compiler.h:27
static void deinitialize()
Definition: init.h:28
static void initialize(const std::string &="")
Definition: init.h:27
Definition: alg_id.cpp:13