@@ -699,7 +699,7 @@ component_test_no_pem_no_fs () {
699
699
700
700
component_test_sslv3 () {
701
701
msg " build: Default + SSLv3 (ASan build)" # ~ 6 min
702
- scripts/config.pl set MBEDTLS_SSL_PROTO_SSL3
702
+ scripts/config.py set MBEDTLS_SSL_PROTO_SSL3
703
703
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
704
704
make
705
705
@@ -716,7 +716,7 @@ component_test_sslv3 () {
716
716
717
717
component_test_no_renegotiation () {
718
718
msg " build: Default + !MBEDTLS_SSL_RENEGOTIATION (ASan build)" # ~ 6 min
719
- scripts/config.pl unset MBEDTLS_SSL_RENEGOTIATION
719
+ scripts/config.py unset MBEDTLS_SSL_RENEGOTIATION
720
720
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
721
721
make
722
722
@@ -745,8 +745,8 @@ component_test_rsa_no_crt () {
745
745
746
746
component_test_small_ssl_out_content_len () {
747
747
msg " build: small SSL_OUT_CONTENT_LEN (ASan build)"
748
- scripts/config.pl set MBEDTLS_SSL_IN_CONTENT_LEN 16384
749
- scripts/config.pl set MBEDTLS_SSL_OUT_CONTENT_LEN 4096
748
+ scripts/config.py set MBEDTLS_SSL_IN_CONTENT_LEN 16384
749
+ scripts/config.py set MBEDTLS_SSL_OUT_CONTENT_LEN 4096
750
750
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
751
751
make
752
752
@@ -756,8 +756,8 @@ component_test_small_ssl_out_content_len () {
756
756
757
757
component_test_small_ssl_in_content_len () {
758
758
msg " build: small SSL_IN_CONTENT_LEN (ASan build)"
759
- scripts/config.pl set MBEDTLS_SSL_IN_CONTENT_LEN 4096
760
- scripts/config.pl set MBEDTLS_SSL_OUT_CONTENT_LEN 16384
759
+ scripts/config.py set MBEDTLS_SSL_IN_CONTENT_LEN 4096
760
+ scripts/config.py set MBEDTLS_SSL_OUT_CONTENT_LEN 16384
761
761
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
762
762
make
763
763
@@ -767,7 +767,7 @@ component_test_small_ssl_in_content_len () {
767
767
768
768
component_test_small_ssl_dtls_max_buffering () {
769
769
msg " build: small MBEDTLS_SSL_DTLS_MAX_BUFFERING #0"
770
- scripts/config.pl set MBEDTLS_SSL_DTLS_MAX_BUFFERING 1000
770
+ scripts/config.py set MBEDTLS_SSL_DTLS_MAX_BUFFERING 1000
771
771
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
772
772
make
773
773
@@ -777,7 +777,7 @@ component_test_small_ssl_dtls_max_buffering () {
777
777
778
778
component_test_small_mbedtls_ssl_dtls_max_buffering () {
779
779
msg " build: small MBEDTLS_SSL_DTLS_MAX_BUFFERING #1"
780
- scripts/config.pl set MBEDTLS_SSL_DTLS_MAX_BUFFERING 240
780
+ scripts/config.py set MBEDTLS_SSL_DTLS_MAX_BUFFERING 240
781
781
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
782
782
make
783
783
@@ -999,25 +999,25 @@ component_build_no_std_function () {
999
999
1000
1000
component_build_no_ssl_srv () {
1001
1001
msg " build: full config except ssl_srv.c, make, gcc" # ~ 30s
1002
- scripts/config.pl full
1003
- scripts/config.pl unset MBEDTLS_SSL_SRV_C
1002
+ scripts/config.py full
1003
+ scripts/config.py unset MBEDTLS_SSL_SRV_C
1004
1004
make CC=gcc CFLAGS=' -Werror -Wall -Wextra -O0'
1005
1005
}
1006
1006
1007
1007
component_build_no_ssl_cli () {
1008
1008
msg " build: full config except ssl_cli.c, make, gcc" # ~ 30s
1009
- scripts/config.pl full
1010
- scripts/config.pl unset MBEDTLS_SSL_CLI_C
1009
+ scripts/config.py full
1010
+ scripts/config.py unset MBEDTLS_SSL_CLI_C
1011
1011
make CC=gcc CFLAGS=' -Werror -Wall -Wextra -O0'
1012
1012
}
1013
1013
1014
1014
component_build_no_sockets () {
1015
1015
# Note, C99 compliance can also be tested with the sockets support disabled,
1016
1016
# as that requires a POSIX platform (which isn't the same as C99).
1017
1017
msg " build: full config except net_sockets.c, make, gcc -std=c99 -pedantic" # ~ 30s
1018
- scripts/config.pl full
1019
- scripts/config.pl unset MBEDTLS_NET_C # getaddrinfo() undeclared, etc.
1020
- scripts/config.pl set MBEDTLS_NO_PLATFORM_ENTROPY # uses syscall() on GNU/Linux
1018
+ scripts/config.py full
1019
+ scripts/config.py unset MBEDTLS_NET_C # getaddrinfo() undeclared, etc.
1020
+ scripts/config.py set MBEDTLS_NO_PLATFORM_ENTROPY # uses syscall() on GNU/Linux
1021
1021
make CC=gcc CFLAGS=' -Werror -Wall -Wextra -O0 -std=c99 -pedantic' lib
1022
1022
}
1023
1023
@@ -1048,7 +1048,7 @@ component_test_memory_buffer_allocator () {
1048
1048
component_test_no_max_fragment_length () {
1049
1049
# Run max fragment length tests with MFL disabled
1050
1050
msg " build: default config except MFL extension (ASan build)" # ~ 30s
1051
- scripts/config.pl unset MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1051
+ scripts/config.py unset MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1052
1052
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
1053
1053
make
1054
1054
@@ -1058,7 +1058,7 @@ component_test_no_max_fragment_length () {
1058
1058
1059
1059
component_test_asan_remove_peer_certificate () {
1060
1060
msg " build: default config with MBEDTLS_SSL_KEEP_PEER_CERTIFICATE disabled (ASan build)"
1061
- scripts/config.pl unset MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
1061
+ scripts/config.py unset MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
1062
1062
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
1063
1063
make
1064
1064
@@ -1074,9 +1074,9 @@ component_test_asan_remove_peer_certificate () {
1074
1074
1075
1075
component_test_no_max_fragment_length_small_ssl_out_content_len () {
1076
1076
msg " build: no MFL extension, small SSL_OUT_CONTENT_LEN (ASan build)"
1077
- scripts/config.pl unset MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1078
- scripts/config.pl set MBEDTLS_SSL_IN_CONTENT_LEN 16384
1079
- scripts/config.pl set MBEDTLS_SSL_OUT_CONTENT_LEN 4096
1077
+ scripts/config.py unset MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
1078
+ scripts/config.py set MBEDTLS_SSL_IN_CONTENT_LEN 16384
1079
+ scripts/config.py set MBEDTLS_SSL_OUT_CONTENT_LEN 4096
1080
1080
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
1081
1081
make
1082
1082
@@ -1155,9 +1155,9 @@ component_test_aes_fewer_tables_and_rom_tables () {
1155
1155
1156
1156
component_test_ctr_drbg_aes_256_sha_256 () {
1157
1157
msg " build: full + MBEDTLS_ENTROPY_FORCE_SHA256 (ASan build)"
1158
- scripts/config.pl full
1159
- scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1160
- scripts/config.pl set MBEDTLS_ENTROPY_FORCE_SHA256
1158
+ scripts/config.py full
1159
+ scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1160
+ scripts/config.py set MBEDTLS_ENTROPY_FORCE_SHA256
1161
1161
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
1162
1162
make
1163
1163
@@ -1167,9 +1167,9 @@ component_test_ctr_drbg_aes_256_sha_256 () {
1167
1167
1168
1168
component_test_ctr_drbg_aes_128_sha_512 () {
1169
1169
msg " build: full + MBEDTLS_CTR_DRBG_USE_128_BIT_KEY (ASan build)"
1170
- scripts/config.pl full
1171
- scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1172
- scripts/config.pl set MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
1170
+ scripts/config.py full
1171
+ scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1172
+ scripts/config.py set MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
1173
1173
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
1174
1174
make
1175
1175
@@ -1179,10 +1179,10 @@ component_test_ctr_drbg_aes_128_sha_512 () {
1179
1179
1180
1180
component_test_ctr_drbg_aes_128_sha_256 () {
1181
1181
msg " build: full + MBEDTLS_CTR_DRBG_USE_128_BIT_KEY + MBEDTLS_ENTROPY_FORCE_SHA256 (ASan build)"
1182
- scripts/config.pl full
1183
- scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1184
- scripts/config.pl set MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
1185
- scripts/config.pl set MBEDTLS_ENTROPY_FORCE_SHA256
1182
+ scripts/config.py full
1183
+ scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
1184
+ scripts/config.py set MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
1185
+ scripts/config.py set MBEDTLS_ENTROPY_FORCE_SHA256
1186
1186
CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
1187
1187
make
1188
1188
@@ -1403,7 +1403,7 @@ component_build_armcc () {
1403
1403
1404
1404
component_test_allow_sha1 () {
1405
1405
msg " build: allow SHA1 in certificates by default"
1406
- scripts/config.pl set MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
1406
+ scripts/config.py set MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
1407
1407
make CFLAGS=' -Werror -Wall -Wextra'
1408
1408
msg " test: allow SHA1 in certificates by default"
1409
1409
make test
0 commit comments