Skip to content

Commit

Permalink
use wireshark memory manager
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jul 9, 2024
1 parent 1ea1a8d commit b9b8d9f
Show file tree
Hide file tree
Showing 8 changed files with 1,048 additions and 1,462 deletions.
4 changes: 2 additions & 2 deletions tunnels/shared/openssl/openssl_globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


static int openssl_lib_initialized = false;
static struct ww_dedictaed_mem_s *openssl_dedicated_memory_manager;
static struct dedicated_memory_s *openssl_dedicated_memory_manager;

static void *opennsl_dedicated_malloc(size_t num, const char *file, int line)
{
Expand Down Expand Up @@ -44,7 +44,7 @@ void opensslGlobalInit(void)
// #else
// OPENSSL_init_ssl(OPENSSL_INIT_SSL_DEFAULT, NULL);
// #endif
openssl_dedicated_memory_manager = wwmDedicatedCreateDefault();
openssl_dedicated_memory_manager = createWWDedicatedMemory();
if (0 == CRYPTO_set_mem_functions(opennsl_dedicated_malloc, opennsl_dedicated_realloc, opennsl_dedicated_free))
{
LOGF("OpenSSl Global: could not swap openssl allocators (almost always because allocations have already "
Expand Down
1 change: 1 addition & 0 deletions ww/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_library(ww STATIC
utils/btree.c
managers/socket_manager.c
managers/node_manager.c
managers/alloc-engine/wof_allocator.c
managers/memory_manager.c
managers/data/iprange_mci.c
managers/data/iprange_irancell.c
Expand Down
Loading

0 comments on commit b9b8d9f

Please sign in to comment.