diff --git a/src/network/tcp_socket_handler.cpp b/src/network/tcp_socket_handler.cpp index 602cf949d6c3169ea897807b34f8b2a73e90c979..642cf03d3cfc516771f05e2f165da956856a8e34 100644 --- a/src/network/tcp_socket_handler.cpp +++ b/src/network/tcp_socket_handler.cpp @@ -12,6 +12,7 @@ #include #ifdef BOTAN_FOUND +# include # include # include # include @@ -28,8 +29,10 @@ namespace Botan::TLS::Session_Manager_In_Memory& get_session_manager() { 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 session_manager.remove_all(); +#endif return session_manager; } }