Skip to content

Commit

Permalink
tls_wolfssl: bump lib to stable release 5.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Oct 1, 2024
1 parent 3e89bcf commit 9586423
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions modules/tls_wolfssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,27 @@ lib/wolfssl/Makefile: lib/wolfssl/configure
--prefix=$(MOD_DIR)/lib \
--exec-prefix=$(MOD_DIR)/lib \
C_EXTRA_FLAGS="-fPIC" \
CFLAGS="-DWOLFSSL_STATIC_RSA $(WOLFSSL_EXTRA_CFLAGS)"
CFLAGS="-DWOLFSSL_STATIC_RSA -DOPENSSL_EXTRA $(WOLFSSL_EXTRA_CFLAGS)"

PATCHED_FILES = lib/wolfssl/src/internal.c lib/wolfssl/src/ssl.c
PATCHED_FILES = #lib/wolfssl/src/internal.c lib/wolfssl/src/ssl.c

lib/lib/libwolfssl.a: lib/wolfssl/Makefile $(PATCHED_FILES)
$(Q)$(MAKE) -C ./lib/wolfssl install

lib/wolfssl/src/internal.c: lib/patches/wolfssl-internal-memleak-fix.patched

lib/patches/wolfssl-internal-memleak-fix.patched: lib/patches/wolfssl-internal-memleak-fix.diff
$(Q)patch -sNR -p1 -d lib/wolfssl --dry-run < $< || patch -N -p1 -d lib/wolfssl < $< && cp $< $@

#lib/wolfssl/src/internal.c: lib/patches/wolfssl-internal-memleak-fix.patched
#
#lib/patches/wolfssl-internal-memleak-fix.patched: lib/patches/wolfssl-internal-memleak-fix.diff
# $(Q)patch -sNR -p1 -d lib/wolfssl --dry-run < $< || patch -N -p1 -d lib/wolfssl < $< && cp $< $@
#
clean: clean-wolfssl-lib

.PHONY: clean-wolfssl-lib
clean-wolfssl-lib:
-@if [ -f ./lib/wolfssl/Makefile ]; then \
$(MAKE) -C ./lib/wolfssl clean; \
fi;
-@patch -stNR -p1 -d lib/wolfssl < lib/patches/wolfssl-internal-memleak-fix.diff
# -@patch -stNR -p1 -d lib/wolfssl < lib/patches/wolfssl-internal-memleak-fix.diff
-@rm -rf ./lib/bin ./lib/include ./lib/lib ./lib/share \
./lib/wolfssl/Makefile ./lib/wolfssl/configure \
lib/patches/wolfssl-internal-memleak-fix.patched

# lib/patches/wolfssl-internal-memleak-fix.patched
2 changes: 1 addition & 1 deletion modules/tls_wolfssl/lib/wolfssl
Submodule wolfssl updated 1823 files

0 comments on commit 9586423

Please sign in to comment.