From ca45744ac724f54a9b2f76bb9d529991ad928e3a Mon Sep 17 00:00:00 2001
From: Lee <ler762@users.sourceforge.net>
Date: Sun, 1 Jan 2023 15:03:58 -0500
Subject: [PATCH] Switch from the mbedtls 2.16 branch to 2.28

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.
---
 windows/MYconfigure | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/windows/MYconfigure b/windows/MYconfigure
index 832581d2..6f73b98a 100755
--- a/windows/MYconfigure
+++ b/windows/MYconfigure
@@ -136,9 +136,15 @@ CPPFLAGS="${CPPFLAGS} -I${inc}"
 LDFLAGS="${LDFLAGS} -L${lib}"
 
 # mbedtls
-# Get the 2.16.x mbedtls library from  https://github.com/ARMmbed/mbedtls/tags
-inc="/source/mbedtls-2.16.11/include"
-lib="/source/mbedtls-2.16.11/library"
+## 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
+inc="/source/mbedtls-2.28.2/include"
+lib="/source/mbedtls-2.28.2/library"
+
 MITMOPT="--with-mbedtls"
 CPPFLAGS="${CPPFLAGS} -I${inc}"
 LDFLAGS="${LDFLAGS} -L${lib}"
-- 
2.49.0