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
This commit is contained in:
Florent Le Coz
2014-06-19 01:04:40 +02:00
parent 386ac4186a
commit 77fe8b89a3
2 changed files with 10 additions and 11 deletions
+4 -4
View File
@@ -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