diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-06-19 01:04:40 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-06-19 01:04:40 +0200 |
commit | 77fe8b89a3a1debe59051b21776c1c6cf67a6070 (patch) | |
tree | af2e4b7c17223a7dd100f93666702c589563c909 /src/network/socket_handler.cpp | |
parent | 386ac4186a750feee12b7d9b89ca37c3d16ebff4 (diff) | |
download | biboumi-77fe8b89a3a1debe59051b21776c1c6cf67a6070.tar.gz biboumi-77fe8b89a3a1debe59051b21776c1c6cf67a6070.tar.bz2 biboumi-77fe8b89a3a1debe59051b21776c1c6cf67a6070.tar.xz biboumi-77fe8b89a3a1debe59051b21776c1c6cf67a6070.zip |
Make the Botan rng, credential_manager etc be static
This actually makes the session_manager be useful, and saves a few octets of
memory for the other ones
Diffstat (limited to 'src/network/socket_handler.cpp')
-rw-r--r-- | src/network/socket_handler.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/network/socket_handler.cpp b/src/network/socket_handler.cpp index a2c22e4..43a63f0 100644 --- a/src/network/socket_handler.cpp +++ b/src/network/socket_handler.cpp @@ -20,6 +20,12 @@ #ifdef BOTAN_FOUND # include <botan/hex.h> + +Botan::AutoSeeded_RNG SocketHandler::rng; +Permissive_Credentials_Manager SocketHandler::credential_manager; +Botan::TLS::Policy SocketHandler::policy; +Botan::TLS::Session_Manager_In_Memory SocketHandler::session_manager(SocketHandler::rng); + #endif #ifndef UIO_FASTIOV @@ -37,13 +43,6 @@ SocketHandler::SocketHandler(std::shared_ptr<Poller> poller): use_tls(false), connected(false), connecting(false) -#ifdef BOTAN_FOUND - , - rng(), - credential_manager(), - policy(), - session_manager(rng) -#endif {} void SocketHandler::init_socket(const struct addrinfo* rp) |