Skip to content

Commit

Permalink
tls_wolfssl: update wolfssl library to version 5.4.0
Browse files Browse the repository at this point in the history
(cherry picked from commit f0c34dd)
  • Loading branch information
rvlad-patrascu committed Jan 31, 2023
1 parent 92cb2c7 commit 8a13312
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/tls_wolfssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lib/lib/libwolfssl.a:
fi; \
if [ ! -f "Makefile" ]; then \
env -u DEFS -u CFLAGS -u LDFLAGS -u LIBS ./configure \
--enable-all --disable-fpecc --disable-examples \
--enable-all --disable-fpecc --disable-examples -disable-aligndata \
--enable-writedup --enable-tlsv10 --disable-shared --enable-static \
--disable-jni --disable-crl-monitor \
--prefix=$(MOD_DIR)/lib \
Expand Down
2 changes: 1 addition & 1 deletion modules/tls_wolfssl/lib/wolfssl
Submodule wolfssl updated 1314 files
20 changes: 20 additions & 0 deletions modules/tls_wolfssl/wolfssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
#include "wolfssl.h"
#include "wolfssl_api.h"

#if defined __OS_linux
#include <features.h>
#if defined(__GLIBC_PREREQ)
#if __GLIBC_PREREQ(2, 2)
#define __WOLFSSL_ON_EXIT
#endif
#endif
#endif

static int load_tls_wolfssl(struct wolfssl_binds *binds);

static int mod_init(void);
Expand Down Expand Up @@ -143,6 +152,13 @@ static void *oss_realloc(void *ptr, size_t size)
return shm_realloc(ptr, size);
}

#ifdef __WOLFSSL_ON_EXIT
static void _wolfssl_on_exit(int status, void *param)
{
_exit(status);
}
#endif

static int mod_init(void)
{
LM_INFO("initializing tls_wolfssl module\n");
Expand All @@ -155,6 +171,10 @@ static int mod_init(void)

_wolfssl_show_ciphers();

#ifdef __WOLFSSL_ON_EXIT
on_exit(_wolfssl_on_exit, NULL);
#endif

return 0;
}

Expand Down

0 comments on commit 8a13312

Please sign in to comment.