tls13-only.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* MBEDTLS_USER_CONFIG_FILE for testing.
  2. * Only used for a few test configurations.
  3. *
  4. * Typical usage (note multiple levels of quoting):
  5. * make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'"
  6. */
  7. /*
  8. * Copyright The Mbed TLS Contributors
  9. * SPDX-License-Identifier: Apache-2.0
  10. *
  11. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  12. * not use this file except in compliance with the License.
  13. * You may obtain a copy of the License at
  14. *
  15. * http://www.apache.org/licenses/LICENSE-2.0
  16. *
  17. * Unless required by applicable law or agreed to in writing, software
  18. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  19. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. * See the License for the specific language governing permissions and
  21. * limitations under the License.
  22. */
  23. /* Enable TLS 1.3 and core 1.3 features */
  24. #define MBEDTLS_SSL_PROTO_TLS1_3
  25. #define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
  26. /* Disable TLS 1.2 and 1.2-specific features */
  27. #undef MBEDTLS_SSL_ENCRYPT_THEN_MAC
  28. #undef MBEDTLS_SSL_EXTENDED_MASTER_SECRET
  29. #undef MBEDTLS_SSL_RENEGOTIATION
  30. #undef MBEDTLS_SSL_PROTO_TLS1_2
  31. #undef MBEDTLS_SSL_PROTO_DTLS
  32. #undef MBEDTLS_SSL_DTLS_ANTI_REPLAY
  33. #undef MBEDTLS_SSL_DTLS_HELLO_VERIFY
  34. #undef MBEDTLS_SSL_DTLS_SRTP
  35. #undef MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
  36. #undef MBEDTLS_SSL_DTLS_CONNECTION_ID
  37. #undef MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT
  38. /* Enable some invasive tests */
  39. #define MBEDTLS_TEST_HOOKS