config.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Minimal configuration for TLS 1.1 (RFC 4346)
  3. *
  4. * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
  5. * SPDX-License-Identifier: GPL-2.0
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write to the Free Software Foundation, Inc.,
  19. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  20. *
  21. * This file is part of mbed TLS (https://tls.mbed.org)
  22. */
  23. /*
  24. * Minimal configuration for TLS 1.1 (RFC 4346), implementing only the
  25. * required ciphersuite: MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA
  26. *
  27. * See README.txt for usage instructions.
  28. */
  29. #ifndef MBEDTLS_CONFIG_H
  30. #define MBEDTLS_CONFIG_H
  31. /* System support */
  32. #define MBEDTLS_HAVE_ASM
  33. #define MBEDTLS_HAVE_TIME
  34. /* mbed TLS feature support */
  35. #define MBEDTLS_CIPHER_MODE_CBC
  36. #define MBEDTLS_PKCS1_V15
  37. #define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
  38. #define MBEDTLS_SSL_PROTO_TLS1_1
  39. /* mbed TLS modules */
  40. #define MBEDTLS_AES_C
  41. #define MBEDTLS_ASN1_PARSE_C
  42. #define MBEDTLS_ASN1_WRITE_C
  43. #define MBEDTLS_BIGNUM_C
  44. #define MBEDTLS_CIPHER_C
  45. #define MBEDTLS_CTR_DRBG_C
  46. #define MBEDTLS_DES_C
  47. #define MBEDTLS_ENTROPY_C
  48. #define MBEDTLS_MD_C
  49. #define MBEDTLS_MD5_C
  50. #define MBEDTLS_NET_C
  51. #define MBEDTLS_OID_C
  52. #define MBEDTLS_PK_C
  53. #define MBEDTLS_PK_PARSE_C
  54. #define MBEDTLS_RSA_C
  55. #define MBEDTLS_SHA1_C
  56. #define MBEDTLS_SHA256_C
  57. #define MBEDTLS_SSL_CLI_C
  58. #define MBEDTLS_SSL_SRV_C
  59. #define MBEDTLS_SSL_TLS_C
  60. #define MBEDTLS_X509_CRT_PARSE_C
  61. #define MBEDTLS_X509_USE_C
  62. /* For test certificates */
  63. #define MBEDTLS_BASE64_C
  64. #define MBEDTLS_CERTS_C
  65. #define MBEDTLS_PEM_PARSE_C
  66. /* For testing with compat.sh */
  67. #define MBEDTLS_FS_IO
  68. #include "mbedtls/check_config.h"
  69. #endif /* MBEDTLS_CONFIG_H */