Skip to content

Commit

Permalink
Update script to use mbedtls 2.x for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Jul 16, 2024
1 parent 6c402e8 commit 8d78b32
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 11 additions & 2 deletions 1refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,19 @@ sed -i.bak '/HAVE_UTF8PROC/d' config.h
if [ $? != 0 ]; then exit; fi


# Since Windows did have a few build problem on mbedTLS 3.x,
# use mbedTLS 2.x just now.
rm -rf mbedtls
if [ $? != 0 ]; then exit; fi
mv mbedtls2windows mbedtls
if [ $? != 0 ]; then exit; fi

# Disable threading in mbedTLS on Windows.
sed -i.bak '/#define MBEDTLS_THREADING_C/d' mbedtls/mbedtls_config.h
# sed -i.bak '/#define MBEDTLS_THREADING_C/d' mbedtls/mbedtls_config.h
sed -i.bak '/#define MBEDTLS_THREADING_C/d' mbedtls/config.h
if [ $? != 0 ]; then exit; fi
sed -i.bak '/#define MBEDTLS_THREADING_PTHREAD/d' mbedtls/mbedtls_config.h
# sed -i.bak '/#define MBEDTLS_THREADING_PTHREAD/d' mbedtls/mbedtls_config.h
sed -i.bak '/#define MBEDTLS_THREADING_PTHREAD/d' mbedtls/config.h
if [ $? != 0 ]; then exit; fi


Expand Down
5 changes: 3 additions & 2 deletions server/pkgdata/files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
/config
/config/config.txt
/config/googletranslate.txt
/config.h.bak
/config/ldap.txt
/config/local.authorities.crt
/config/local.cert.pem
Expand Down Expand Up @@ -549,8 +550,8 @@
/mapping/Vulgate.txt
/mbedtls
/mbedtls/0readme.txt
/mbedtls_2.x
/mbedtls_2.x/0readme.txt
/mbedtls2windows
/mbedtls2windows/0readme.txt
/menu
/microtar
/microtar/LICENSE
Expand Down

0 comments on commit 8d78b32

Please sign in to comment.