Commit 52071102 authored by louiz’'s avatar louiz’

Use our botan gh#1276 workaround only for botan < 2.4

fix #3320
parent 1bb3e2e7
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <cstring> #include <cstring>
#ifdef BOTAN_FOUND #ifdef BOTAN_FOUND
# include <botan/version.h>
# include <botan/hex.h> # include <botan/hex.h>
# include <botan/auto_rng.h> # include <botan/auto_rng.h>
# include <botan/tls_exceptn.h> # include <botan/tls_exceptn.h>
...@@ -28,8 +29,10 @@ namespace ...@@ -28,8 +29,10 @@ namespace
Botan::TLS::Session_Manager_In_Memory& get_session_manager() Botan::TLS::Session_Manager_In_Memory& get_session_manager()
{ {
static Botan::TLS::Session_Manager_In_Memory session_manager{get_rng()}; static Botan::TLS::Session_Manager_In_Memory session_manager{get_rng()};
#if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(2,4,0)
// workaround for https://github.com/randombit/botan/issues/1276 // workaround for https://github.com/randombit/botan/issues/1276
session_manager.remove_all(); session_manager.remove_all();
#endif
return session_manager; return session_manager;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment