Botan  2.19.1
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 
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
LibraryInitializer(const std::string &="")
Definition: init.h:27
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
Definition: compiler.h:31
static void deinitialize()
Definition: init.h:30
static void initialize(const std::string &="")
Definition: init.h:29
Definition: alg_id.cpp:13
#define BOTAN_DEPRECATED_HEADER(hdr)
Definition: compiler.h:132
int(* init)(CTX *)