/* * Amazon FreeRTOS V1.1.4 * Copyright (C) 2018 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. * * http://aws.amazon.com/freertos * http://www.FreeRTOS.org */ /** * @file aws_test_ota_config.h * @brief Port-specific variables for firmware Over-the-Air Update tests. */ #ifndef _AWS_TEST_OTA_CONFIG_H_ #define _AWS_TEST_OTA_CONFIG_H_ /** * @brief Path to cert for OTA PAL test. Used to verify signature. * If applicable, the device must be pre-provisioned with this certificate. Please see * test/common/ota/test_files for the set of certificates. * * In the Windows Simultor this is the path to the certificate on your machine. The path currently * here is relative to the Amazon FreeRTOS root. If you are debugging locally, Visual Studio may have * your path set as the project directory. In that case this can be changed to: * * #define otatestpalCERTIFICATE_FILE ".\\..\\..\\..\\..\\tests\\common\\ota\\test_files\\ecdsa-sha256-signer.crt.pem" */ #define otatestpalCERTIFICATE_FILE "tests\\common\\ota\\test_files\\ecdsa-sha256-signer.crt.pem" /** * @brief Some devices have a hard-coded name for the firmware image to boot. */ #define otatestpalFIRMWARE_FILE "dummy.bin" /** * @brief Some boards OTA PAL layers will use the file names passed into it for the * image and the certificates because their non-volatile memory is abstracted by a * file system. Set this to 1 if that is the case for your device. */ #define otatestpalUSE_FILE_SYSTEM 1 /** * @brief 1 if prvPAL_CheckFileSignature() is implemented in aws_ota_pal.c. */ #define otatestpalCHECK_FILE_SIGNATURE_SUPPORTED 1 /** * @brief 1 if prvPAL_ReadAndAssumeCertificate() is implemented in aws_ota_pal.c. */ #define otatestpalREAD_AND_ASSUME_CERTIFICATE_SUPPORTED 1 /** * @brief 1 if using PKCS #11 to access the code sign certificate from NVM. */ #define otatestpalREAD_CERTIFICATE_FROM_NVM_WITH_PKCS11 0 /** * @brief Include of signature testing data applicable to this device. */ #include "aws_test_ota_pal_ecdsa_sha256_signature.h" /** * @brief Define a valid and invalid signature verification method for this * platform (Windows). These are used for generating test JSON docs. */ #define otatestVALID_SIG_METHOD "sig-sha256-ecdsa" #define otatestINVALID_SIG_METHOD "sig-sha256-rsa" #endif /* ifndef _AWS_TEST_OTA_CONFIG_H_ */