From a2679e5e46cea14bfdb310a75f0b4a1d8f554afd Mon Sep 17 00:00:00 2001 From: Paul Bartell Date: Mon, 24 Oct 2022 14:00:48 -0700 Subject: [PATCH] Remove old mbedtls_config.h files --- .../Device_Defender_Demo/mbedtls_config.h | 137 ----------------- .../Device_Shadow_Demo/mbedtls_config.h | 137 ----------------- .../mbedtls_config.h | 144 ------------------ .../Jobs_Demo/mbedtls_config.h | 137 ----------------- .../Ota_Over_Http_Demo/mbedtls_config.h | 140 ----------------- .../Ota_Over_Mqtt_Demo/mbedtls_config.h | 140 ----------------- .../Common/mbedtls_config.h | 137 ----------------- .../HTTP_Mutual_Auth/mbedtls_config.h | 137 ----------------- .../HTTP_S3_Download/mbedtls_config.h | 137 ----------------- .../mbedtls_config.h | 137 ----------------- .../HTTP_S3_Upload/mbedtls_config.h | 137 ----------------- .../Common/mbedtls_config.h | 137 ----------------- .../mbedtls_config.h | 141 ----------------- .../mbedtls_config.h | 138 ----------------- 14 files changed, 1936 deletions(-) delete mode 100644 FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/Common/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_Mutual_Auth/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/Common/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h delete mode 100644 FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/mbedtls_config.h diff --git a/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/mbedtls_config.h b/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/mbedtls_config.h b/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/mbedtls_config.h b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/mbedtls_config.h deleted file mode 100644 index c1e9ece3e6..0000000000 --- a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/mbedtls_config.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_CMAC_C -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_ENTROPY_HARDWARE_ALT -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PEM_WRITE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_X509_CRT_PARSE_C -#define MBEDTLS_X509_CREATE_C -#define MBEDTLS_X509_CSR_WRITE_C -#define MBEDTLS_CMAC_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/mbedtls_config.h b/FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/AWS/Jobs_Windows_Simulator/Jobs_Demo/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/mbedtls_config.h b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/mbedtls_config.h deleted file mode 100644 index 79eae84a5b..0000000000 --- a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Http_Demo/mbedtls_config.h +++ /dev/null @@ -1,140 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE -#define MBEDTLS_X509_CREATE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_X509_CSR_WRITE_C - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/mbedtls_config.h b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/mbedtls_config.h deleted file mode 100644 index 79eae84a5b..0000000000 --- a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Ota_Over_Mqtt_Demo/mbedtls_config.h +++ /dev/null @@ -1,140 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE -#define MBEDTLS_X509_CREATE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_X509_CSR_WRITE_C - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/Common/mbedtls_config.h b/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/Common/mbedtls_config.h deleted file mode 100644 index 4d31712bd7..0000000000 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Cellular_Interface_Windows_Simulator/Common/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_cellular_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_cellular_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_cellular_send -#define MBEDTLS_SSL_RECV mbedtls_cellular_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_Mutual_Auth/mbedtls_config.h b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_Mutual_Auth/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_Mutual_Auth/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/mbedtls_config.h b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/mbedtls_config.h b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/mbedtls_config.h b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/Common/mbedtls_config.h b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/Common/mbedtls_config.h deleted file mode 100644 index f598573000..0000000000 --- a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/Common/mbedtls_config.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h deleted file mode 100644 index 9ac94ab1eb..0000000000 --- a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_ENTROPY_HARDWARE_ALT - -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C -#define MBEDTLS_CMAC_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* These two macro used by mbedtls_ssl_set_bio in using_mbedtls network - * transport layer. */ -#define MBEDTLS_SSL_SEND mbedtls_platform_send -#define MBEDTLS_SSL_RECV mbedtls_platform_recv - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */ diff --git a/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/mbedtls_config.h b/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/mbedtls_config.h deleted file mode 100644 index 09bb8886fe..0000000000 --- a/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator/mbedtls_config.h +++ /dev/null @@ -1,138 +0,0 @@ -/* - * FreeRTOS V202112.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ - -/* This file configures mbed TLS for FreeRTOS. */ - -#ifndef MBEDTLS_CONFIG_H_ -#define MBEDTLS_CONFIG_H_ - -/* FreeRTOS include. */ -#include "FreeRTOS.h" - -/* Generate errors if deprecated functions are used. */ -#define MBEDTLS_DEPRECATED_REMOVED - -/* Place AES tables in ROM. */ -#define MBEDTLS_AES_ROM_TABLES - -/* Enable the following cipher modes. */ -#define MBEDTLS_CIPHER_MODE_CBC -#define MBEDTLS_CIPHER_MODE_CFB -#define MBEDTLS_CIPHER_MODE_CTR - -/* Enable CMAC mode for authentication code generation. */ -#define MBEDTLS_CMAC_C - -/* Enable the following cipher padding modes. */ -#define MBEDTLS_CIPHER_PADDING_PKCS7 -#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS -#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN -#define MBEDTLS_CIPHER_PADDING_ZEROS - -/* Cipher suite configuration. */ -#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES -#define MBEDTLS_ECP_DP_SECP256R1_ENABLED -#define MBEDTLS_ECP_NIST_OPTIM -#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED -#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - -/* Enable all SSL alert messages. */ -#define MBEDTLS_SSL_ALL_ALERT_MESSAGES - -/* Enable the following SSL features. */ -#define MBEDTLS_SSL_ENCRYPT_THEN_MAC -#define MBEDTLS_SSL_EXTENDED_MASTER_SECRET -#define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH -#define MBEDTLS_SSL_PROTO_TLS1_2 -#define MBEDTLS_SSL_ALPN -#define MBEDTLS_SSL_SERVER_NAME_INDICATION - -/* Check certificate key usage. */ -#define MBEDTLS_X509_CHECK_KEY_USAGE -#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE - -/* Disable platform entropy functions. */ -#define MBEDTLS_NO_PLATFORM_ENTROPY - -/* Enable the following mbed TLS features. */ -#define MBEDTLS_AES_C -#define MBEDTLS_ASN1_PARSE_C -#define MBEDTLS_ASN1_WRITE_C -#define MBEDTLS_BASE64_C -#define MBEDTLS_BIGNUM_C -#define MBEDTLS_CIPHER_C -#define MBEDTLS_CTR_DRBG_C -#define MBEDTLS_ECDH_C -#define MBEDTLS_ECDSA_C -#define MBEDTLS_ECP_C -#define MBEDTLS_ENTROPY_C -#define MBEDTLS_ERROR_C -#define MBEDTLS_ENTROPY_HARDWARE_ALT - -#define MBEDTLS_GCM_C -#define MBEDTLS_MD_C -#define MBEDTLS_OID_C -#define MBEDTLS_PEM_PARSE_C -#define MBEDTLS_PK_C -#define MBEDTLS_PK_PARSE_C -#define MBEDTLS_PK_WRITE_C -#define MBEDTLS_PKCS1_V15 -#define MBEDTLS_PLATFORM_C -#define MBEDTLS_RSA_C -#define MBEDTLS_SHA1_C -#define MBEDTLS_SHA256_C -#define MBEDTLS_SSL_CLI_C -#define MBEDTLS_SSL_TLS_C -#define MBEDTLS_THREADING_ALT -#define MBEDTLS_THREADING_C -#define MBEDTLS_X509_USE_C -#define MBEDTLS_X509_CRT_PARSE_C - -/* Set the memory allocation functions on FreeRTOS. */ -void * mbedtls_platform_calloc( size_t nmemb, - size_t size ); -void mbedtls_platform_free( void * ptr ); -#define MBEDTLS_PLATFORM_MEMORY -#define MBEDTLS_PLATFORM_CALLOC_MACRO mbedtls_platform_calloc -#define MBEDTLS_PLATFORM_FREE_MACRO mbedtls_platform_free - -/* The network send and receive functions on FreeRTOS. */ -int mbedtls_platform_send( void * ctx, - const unsigned char * buf, - size_t len ); -int mbedtls_platform_recv( void * ctx, - unsigned char * buf, - size_t len ); - -/* The entropy poll function. */ -int mbedtls_platform_entropy_poll( void * data, - unsigned char * output, - size_t len, - size_t * olen ); - -#include "mbedtls/check_config.h" - -#endif /* ifndef MBEDTLS_CONFIG_H_ */