[Privoxy-commits] [privoxy] branch master updated: windows: use the mbedtls-3.6.3 library for https inspection
User Git
git at git.privoxy.org
Thu Apr 3 15:49:45 CEST 2025
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
The following commit(s) were added to refs/heads/master by this push:
new f2beba48 windows: use the mbedtls-3.6.3 library for https inspection
f2beba48 is described below
commit f2beba48f502960474531df87b80805fd454b4c1
Author: Lee <ler762 at users.sourceforge.net>
AuthorDate: Thu Apr 3 09:47:32 2025 -0400
windows: use the mbedtls-3.6.3 library for https inspection
---
windows/MYconfigure | 39 ++++++++++++++++++++++++---------------
1 file changed, 24 insertions(+), 15 deletions(-)
diff --git a/windows/MYconfigure b/windows/MYconfigure
index ff82f390..3e78fe3a 100755
--- a/windows/MYconfigure
+++ b/windows/MYconfigure
@@ -38,6 +38,9 @@ export CPPFLAGS=""
export LDFLAGS=""
# start with initially empty flags
+export LIBS=""
+# start with initially empty flags
+
CFLAGS="${CFLAGS} -fdiagnostics-color=always"
# Have gcc diagnostics be in color even if stderr is not going to a terminal.
@@ -158,22 +161,28 @@ fi
CPPFLAGS="${CPPFLAGS} -I${inc}"
LDFLAGS="${LDFLAGS} -L${lib}"
+# pick a library for doing https interception (ie. playing man-in-the-middle)
+# mbedtls
+# none
+mitmlib="mbedtls"
+
+if [ "$mitmlib" = "mbedtls" ]; then
+MITMOPT="--with-mbedtls"
+
# mbedtls
-## https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.16.12
-## This is the last release of the 2.16 long-time support branch.
-## Users who want a long-time branch should move to mbedtls-2.28,
-## which is backward-compatible and will be supported for at least
-## 3 years.
-# Get the 2.28.x mbedtls library from https://github.com/Mbed-TLS/mbedtls/tags
-# Release Notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.4
-
-##MITMOPT="--with-mbedtls"
-##inc="/source/mbedtls-2.28.4/include"
-##lib="/source/mbedtls-2.28.4/library"
-##CPPFLAGS="${CPPFLAGS} -I${inc}"
-##LDFLAGS="${LDFLAGS} -L${lib}"
-
-MITMOPT="--with-openssl"
+# Get the 3.6.x mbedtls library from https://github.com/Mbed-TLS/mbedtls/tags
+# Release Notes: https://github.com/Mbed-TLS/mbedtls/releases?q=3.6.3
+
+inc="/source/mbedtls-3.6.3/include"
+lib="/source/mbedtls-3.6.3/library"
+CPPFLAGS="${CPPFLAGS} -I${inc}"
+LDFLAGS="${LDFLAGS} -L${lib}"
+LIBS="${LIBS} -lbcrypt"
+# fixes the undefined reference to `BCryptGenRandom at 16'
+
+else
+ MITMOPT=""
+fi
# brotli
# Get the brotli library from https://github.com/google/brotli/releases
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list