1#!/bin/sh 2 3set -eu 4 5if [ $# -ne 2 ]; then 6 echo "Usage: $0 path/to/config.pl path/to/config.h" >&2 7 exit 1 8fi 9 10SCRIPT=$1 11FILE=$2 12 13conf() { 14 $SCRIPT -f $FILE $@ 15} 16 17 18# Set the target specific header 19conf set YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE \"mbedtls/target_config.h\" 20 21# not supported on mbed OS, nor used by mbed Client 22conf unset MBEDTLS_NET_C 23conf unset MBEDTLS_TIMING_C 24 25# not supported on all targets with mbed OS, nor used by mbed Client 26conf unset MBEDTLS_FS_IO 27 28conf unset MBEDTLS_CIPHER_MODE_CFB 29conf unset MBEDTLS_CIPHER_MODE_CTR 30conf unset MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 31conf unset MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 32conf unset MBEDTLS_CIPHER_PADDING_ZEROS 33conf unset MBEDTLS_ECP_DP_SECP192R1_ENABLED 34conf unset MBEDTLS_ECP_DP_SECP224R1_ENABLED 35conf unset MBEDTLS_ECP_DP_SECP521R1_ENABLED 36conf unset MBEDTLS_ECP_DP_SECP192K1_ENABLED 37conf unset MBEDTLS_ECP_DP_SECP224K1_ENABLED 38conf unset MBEDTLS_ECP_DP_SECP256K1_ENABLED 39conf unset MBEDTLS_ECP_DP_BP256R1_ENABLED 40conf unset MBEDTLS_ECP_DP_BP384R1_ENABLED 41conf unset MBEDTLS_ECP_DP_BP512R1_ENABLED 42conf unset MBEDTLS_PK_PARSE_EC_EXTENDED 43 44conf unset MBEDTLS_AESNI_C 45conf unset MBEDTLS_ARC4_C 46conf unset MBEDTLS_BLOWFISH_C 47conf unset MBEDTLS_CAMELLIA_C 48conf unset MBEDTLS_DES_C 49conf unset MBEDTLS_DHM_C 50conf unset MBEDTLS_GENPRIME 51conf unset MBEDTLS_MD5_C 52conf unset MBEDTLS_PADLOCK_C 53conf unset MBEDTLS_PEM_WRITE_C 54conf unset MBEDTLS_PKCS5_C 55conf unset MBEDTLS_PKCS12_C 56conf unset MBEDTLS_RIPEMD160_C 57conf unset MBEDTLS_SHA1_C 58conf unset MBEDTLS_XTEA_C 59 60conf unset MBEDTLS_X509_RSASSA_PSS_SUPPORT 61 62conf unset MBEDTLS_X509_CSR_PARSE_C 63conf unset MBEDTLS_X509_CREATE_C 64conf unset MBEDTLS_X509_CRT_WRITE_C 65conf unset MBEDTLS_X509_CSR_WRITE_C 66 67conf unset MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED 68conf unset MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED 69conf unset MBEDTLS_KEY_EXCHANGE_RSA_ENABLED 70conf unset MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED 71conf unset MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED 72conf unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED 73conf unset MBEDTLS_SSL_FALLBACK_SCSV 74conf unset MBEDTLS_SSL_CBC_RECORD_SPLITTING 75conf unset MBEDTLS_SSL_PROTO_TLS1 76conf unset MBEDTLS_SSL_PROTO_TLS1_1 77conf unset MBEDTLS_SSL_TRUNCATED_HMAC 78