From c3d1f546c3e9a0f62d60846d13be94c6a85894d5 Mon Sep 17 00:00:00 2001 From: ILUXONCHIK Date: Wed, 28 Mar 2018 09:22:15 +0100 Subject: [PATCH] define TEST_SRV_CRT_RSA_SOME in similar logic to TEST_CA_CRT_RSA_SOME --- library/certs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/library/certs.c b/library/certs.c index 8fda8b88f..d8dd69962 100644 --- a/library/certs.c +++ b/library/certs.c @@ -166,11 +166,11 @@ const size_t mbedtls_test_cli_key_ec_len = sizeof( mbedtls_test_cli_key_ec ); const char mbedtls_test_ca_crt_rsa[] = TEST_CA_CRT_RSA_SHA256; const size_t mbedtls_test_ca_crt_rsa_len = sizeof( mbedtls_test_ca_crt_rsa ); +#define TEST_CA_CRT_RSA_SOME const char mbedtls_test_srv_crt_rsa[] = TEST_SRV_CRT_RSA_SHA256; const size_t mbedtls_test_srv_crt_rsa_len = sizeof( mbedtls_test_srv_crt_rsa ); - -#define TEST_CA_CRT_RSA_SOME +#define TEST_SRV_CRT_RSA_SOME static const char mbedtls_test_ca_crt_rsa_sha256[] = TEST_CA_CRT_RSA_SHA256; @@ -225,10 +225,12 @@ static const char mbedtls_test_ca_crt_rsa_sha256[] = TEST_CA_CRT_RSA_SHA256; #if !defined (TEST_CA_CRT_RSA_SOME) const char mbedtls_test_ca_crt_rsa[] = TEST_CA_CRT_RSA_SHA1; const size_t mbedtls_test_ca_crt_rsa_len = sizeof( mbedtls_test_ca_crt_rsa ); +#endif +#if !defined(TEST_SRV_CRT_RSA_SOME) const char mbedtls_test_srv_crt_rsa[] = TEST_SRV_CRT_RSA_SHA1; const size_t mbedtls_test_srv_crt_rsa_len = sizeof( mbedtls_test_srv_crt_rsa ); -#endif /* TEST_CA_CRT_RSA_SOME */ +#endif static const char mbedtls_test_ca_crt_rsa_sha1[] = TEST_CA_CRT_RSA_SHA1;