blob: fa043b7b13773ec39d4669a6758a7edd3a86cb40 [file] [log] [blame]
Jerry Yuda5af222021-12-24 18:45:45 +08001/* 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/*
9 * Copyright The Mbed TLS Contributors
10 * SPDX-License-Identifier: Apache-2.0
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License"); you may
13 * not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
20 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 */
24#if defined(MBEDTLS_SSL_ENCRYPT_THEN_MAC)
25#undef MBEDTLS_SSL_ENCRYPT_THEN_MAC
26#endif
27
28#if defined(MBEDTLS_SSL_EXTENDED_MASTER_SECRET)
29#undef MBEDTLS_SSL_EXTENDED_MASTER_SECRET
30#endif
31
32#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
33#undef MBEDTLS_SSL_PROTO_TLS1_2
34#endif
35
36#if !defined(MBEDTLS_SSL_PROTO_TLS1_3)
37#define MBEDTLS_SSL_PROTO_TLS1_3
38#endif
39
40#if !defined(MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE)
41#define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
42#endif
43
44#if defined(MBEDTLS_SSL_PROTO_DTLS)
45#undef MBEDTLS_SSL_PROTO_DTLS
46#endif
47
48#if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
49#undef MBEDTLS_SSL_DTLS_ANTI_REPLAY
50#endif
51
52#if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)
53#undef MBEDTLS_SSL_DTLS_HELLO_VERIFY
54#endif
55
56#if defined(MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE)
57#undef MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
58#endif