2525
2626# Compile all version of GnuTLS.
2727function compile_gnutls_all {
28- compile_gnutls ' 3.6.11.1 '
29- compile_gnutls ' 3.8.9 '
28+ compile_gnutls ' 3.6.16 '
29+ compile_gnutls ' 3.8.10 '
3030}
3131
3232
3333# Compile all versions of Mbed TLS.
3434function compile_mbedtls_all {
35- compile_mbedtls ' 3.6.3.1 '
35+ compile_mbedtls ' 3.6.4 '
3636}
3737
3838
@@ -41,7 +41,7 @@ function compile_openssl_all {
4141 compile_openssl ' 1.0.0'
4242 compile_openssl ' 1.0.2'
4343 compile_openssl ' 1.1.1'
44- compile_openssl ' 3.5 .0'
44+ compile_openssl ' 3.6 .0'
4545}
4646
4747
@@ -51,16 +51,16 @@ function compile_mbedtls {
5151
5252 git_tag=
5353 output_dir=
54- if [[ $version == ' 3.6.3.1 ' ]]; then
55- git_tag=" v3.6.3.1 "
56- output_dir=" mbedtls_v3.6.3.1_dir "
54+ if [[ $version == ' 3.6.4 ' ]]; then
55+ git_tag=" v3.6.4 "
56+ output_dir=" mbedtls_v3.6.4_dir "
5757 else
5858 echo -e " ${REDB} Error: Mbed TLS v${version} is unknown!${CLR} "
5959 exit 1
6060 fi
6161
6262 echo -e " \n${YELLOWB} Downloading Mbed TLS v${version} ...${CLR} \n"
63- git clone --depth 1 -b ${git_tag} https://github.com/Mbed-TLS/mbedtls ${output_dir}
63+ git clone --depth 1 --recurse-submodules - b ${git_tag} https://github.com/Mbed-TLS/mbedtls ${output_dir}
6464
6565 echo -e " \n${YELLOWB} Compiling Mbed TLS v${version} ...${CLR} \n"
6666 pushd ${output_dir}
@@ -113,10 +113,10 @@ function compile_openssl {
113113 git_tag=" OpenSSL_1_1_1-stable"
114114 compile_args=" enable-weak-ssl-ciphers no-shared zlib"
115115 output_dir=" openssl_v1.1.1_dir"
116- elif [[ $version == ' 3.5 .0' ]]; then
117- git_tag=" openssl-3.5 .0"
116+ elif [[ $version == ' 3.6 .0' ]]; then
117+ git_tag=" openssl-3.6 .0"
118118 compile_args=" enable-weak-ssl-ciphers no-shared zlib"
119- output_dir=" openssl_v3.5 .0_dir"
119+ output_dir=" openssl_v3.6 .0_dir"
120120 else
121121 echo -e " ${REDB} Error: OpenSSL v${version} is unknown!${CLR} "
122122 exit 1
@@ -163,23 +163,23 @@ function compile_gnutls {
163163 nettle_version=
164164 compile_num_procs=${NUM_PROCS}
165165 compile_nettle=0
166- if [[ " ${gnutls_version} " == " 3.6.11.1 " ]]; then
167- gnutls_url=https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.11.1 .tar.xz
168- gnutls_expected_sha256=fbba12f3db9a55dbf027e14111755817ec44b57eabec3e8089aac8ac6f533cf8
169- gnutls_filename=gnutls-3.6.11.1 .tar.xz
170- gnutls_source_dir=gnutls-3.6.11.1
171- nettle_version=3.5.1
172- nettle_url=https://ftp.gnu.org/gnu/nettle/nettle-3.5.1 .tar.gz
173- nettle_expected_sha256=75cca1998761b02e16f2db56da52992aef622bf55a3b45ec538bc2eedadc9419
174- nettle_filename=nettle-3.5.1 .tar.gz
175- nettle_source_dir=nettle-3.5.1
176- compile_nettle=1
177- elif [[ " ${gnutls_version} " == " 3.8.9 " ]]; then
166+ if [[ " ${gnutls_version} " == " 3.6.16 " ]]; then
167+ gnutls_url=https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.16 .tar.xz
168+ gnutls_expected_sha256=1b79b381ac283d8b054368b335c408fedcb9b7144e0c07f531e3537d4328f3b3
169+ gnutls_filename=gnutls-3.6.16 .tar.xz
170+ gnutls_source_dir=gnutls-3.6.16
171+ nettle_version=3.10.2
172+ nettle_url=https://ftp.gnu.org/gnu/nettle/nettle-3.10.2 .tar.gz
173+ nettle_expected_sha256=fe9ff51cb1f2abb5e65a6b8c10a92da0ab5ab6eaf26e7fc2b675c45f1fb519b5
174+ nettle_filename=nettle-3.10.2 .tar.gz
175+ nettle_source_dir=nettle-3.10.2
176+ compile_nettle=1
177+ elif [[ " ${gnutls_version} " == " 3.8.10 " ]]; then
178178 echo " Using platform's nettle library."
179- gnutls_url=https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.9 .tar.xz
180- gnutls_expected_sha256=69e113d802d1670c4d5ac1b99040b1f2d5c7c05daec5003813c049b5184820ed
181- gnutls_filename=gnutls-3.8.9 .tar.xz
182- gnutls_source_dir=gnutls-3.8.9
179+ gnutls_url=https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.10 .tar.xz
180+ gnutls_expected_sha256=db7fab7cce791e7727ebbef2334301c821d79a550ec55c9ef096b610b03eb6b7
181+ gnutls_filename=gnutls-3.8.10 .tar.xz
182+ gnutls_source_dir=gnutls-3.8.10
183183 else
184184 echo -e " ${REDB} Error: GnuTLS v${gnutls_version} is unknown!${CLR} "
185185 exit 1
@@ -262,7 +262,7 @@ function compile_gnutls {
262262 exit 1
263263 fi
264264
265- # Copy the gnutls-cli and gnutls-serv apps to the top-level docker building dir as, e.g. 'gnutls-cli-v3.6.11.1 '. Then we can delete the source code directory and move on.
265+ # Copy the gnutls-cli and gnutls-serv apps to the top-level docker building dir as, e.g. 'gnutls-cli-v3.6.16 '. Then we can delete the source code directory and move on.
266266 cp " src/gnutls-cli" " /build/gnutls-cli-v${gnutls_version} "
267267 cp " src/gnutls-serv" " /build/gnutls-serv-v${gnutls_version} "
268268
0 commit comments