diff options
author | lloyd <[email protected]> | 2014-02-08 13:38:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-02-08 13:38:05 +0000 |
commit | 4a1bd5fffef24d8d09534760fd1b4a435948ca9d (patch) | |
tree | b0e2371d3ae6c6faddcc67406a28d5bf403de83a | |
parent | 4497e26819846a51432326ada92df6d341db7f27 (diff) |
Compile fixes
-rw-r--r-- | src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.cpp | 1 | ||||
-rw-r--r-- | src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.h | 2 | ||||
-rw-r--r-- | src/tests/test_cvc.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.cpp b/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.cpp index 4a46c6fe3..21483067f 100644 --- a/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.cpp +++ b/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.cpp @@ -118,6 +118,7 @@ Session_Manager_SQLite::Session_Manager_SQLite(const std::string& passphrase, Session_Manager_SQLite::~Session_Manager_SQLite() { + delete m_db; } bool Session_Manager_SQLite::load_from_session_id(const std::vector<byte>& session_id, diff --git a/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.h b/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.h index e6c7901f7..7892ccd6a 100644 --- a/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.h +++ b/src/lib/tls/sessions_sqlite/tls_session_manager_sqlite.h @@ -70,7 +70,7 @@ class BOTAN_DLL Session_Manager_SQLite : public Session_Manager RandomNumberGenerator& m_rng; size_t m_max_sessions; std::chrono::seconds m_session_lifetime; - std::unique_ptr<sqlite3_database> m_db; + sqlite3_database* m_db; }; } diff --git a/src/tests/test_cvc.cpp b/src/tests/test_cvc.cpp index 9519f0926..349eafd44 100644 --- a/src/tests/test_cvc.cpp +++ b/src/tests/test_cvc.cpp @@ -18,6 +18,7 @@ #include <vector> #include <memory> +#include <botan/auto_rng.h> #include <botan/ecdsa.h> #include <botan/rsa.h> |