config.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Copyright (C) 2017 Fortanix, Inc.
  2. Copyright (C) 2019 Intel Corp.
  3. This file is part of Graphene Library OS.
  4. Graphene Library OS is free software: you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public License
  6. as published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. Graphene Library OS is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #ifndef MBEDTLS_CONFIG_H
  15. #define MBEDTLS_CONFIG_H
  16. #define MBEDTLS_AESNI_C
  17. #define MBEDTLS_AES_C
  18. #define MBEDTLS_ASN1_PARSE_C
  19. #define MBEDTLS_BASE64_C
  20. #define MBEDTLS_BIGNUM_C
  21. #define MBEDTLS_CIPHER_C
  22. #define MBEDTLS_CMAC_C
  23. #define MBEDTLS_CTR_DRBG_C
  24. #define MBEDTLS_DHM_C
  25. #define MBEDTLS_ENTROPY_C
  26. #define MBEDTLS_ENTROPY_HARDWARE_ALT
  27. #define MBEDTLS_ERROR_C
  28. #define MBEDTLS_GCM_C
  29. #define MBEDTLS_GENPRIME
  30. #define MBEDTLS_HAVE_ASM
  31. #define MBEDTLS_HAVE_X86_64
  32. #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
  33. #define MBEDTLS_MD_C
  34. #define MBEDTLS_NET_C
  35. #define MBEDTLS_NO_PLATFORM_ENTROPY
  36. #define MBEDTLS_OID_C
  37. #define MBEDTLS_PKCS1
  38. #define MBEDTLS_PKCS1_V15
  39. #define MBEDTLS_PLATFORM_C
  40. #define MBEDTLS_RSA_C
  41. #define MBEDTLS_SHA256_C
  42. #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256
  43. #define MBEDTLS_SSL_CLI_C
  44. #define MBEDTLS_SSL_PROTO_TLS1_2
  45. #define MBEDTLS_SSL_SRV_C
  46. #define MBEDTLS_SSL_TLS_C
  47. #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
  48. #include <limits.h>
  49. #include <stddef.h>
  50. void* calloc(size_t nmem, size_t size);
  51. void free(void*);
  52. #define MBEDTLS_PLATFORM_STD_CALLOC calloc
  53. #define MBEDTLS_PLATFORM_STD_FREE free
  54. #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf
  55. #endif