summaryrefslogtreecommitdiff
path: root/src/network/socket_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-19 01:04:40 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-19 01:04:40 +0200
commit77fe8b89a3a1debe59051b21776c1c6cf67a6070 (patch)
treeaf2e4b7c17223a7dd100f93666702c589563c909 /src/network/socket_handler.hpp
parent386ac4186a750feee12b7d9b89ca37c3d16ebff4 (diff)
downloadbiboumi-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.hpp')
-rw-r--r--src/network/socket_handler.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp
index 95e38bd..b4cb6f2 100644
--- a/src/network/socket_handler.hpp
+++ b/src/network/socket_handler.hpp
@@ -253,10 +253,10 @@ private:
/**
* Botan stuff to manipulate a TLS session.
*/
- Botan::AutoSeeded_RNG rng;
- Permissive_Credentials_Manager credential_manager;
- Botan::TLS::Policy policy;
- Botan::TLS::Session_Manager_In_Memory session_manager;
+ static Botan::AutoSeeded_RNG rng;
+ static Permissive_Credentials_Manager credential_manager;
+ static Botan::TLS::Policy policy;
+ static Botan::TLS::Session_Manager_In_Memory session_manager;
/**
* We use a unique_ptr because we may not want to create the object at
* all. The Botan::TLS::Client object generates a handshake message as