1common:
2  tags:
3    - crypto.mbedtls
4    - net.socket
5  platform_allow:
6    - native_sim
7  integration_platforms:
8    - native_sim
9  harness: pytest
10tests:
11  net.sockets.tls12.rsa_kex:
12    extra_args:
13      - EXTRA_CONF_FILE=overlay-tls12.conf;overlay-rsa.conf
14    extra_configs:
15      - CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=y
16      - CONFIG_SERVER_PORT=4000
17    harness_config:
18      pytest_args: ["--server-type", "1.2-rsa", "--port", "4000"]
19  net.sockets.tls12.ec_kex:
20    extra_args:
21      - EXTRA_CONF_FILE=overlay-tls12.conf;overlay-ec.conf
22    extra_configs:
23      - CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
24      - CONFIG_SERVER_PORT=4001
25    harness_config:
26      pytest_args: ["--server-type", "1.2-ec", "--port", "4001"]
27  net.sockets.tls13.ephemeral_kex:
28    extra_args:
29      - EXTRA_CONF_FILE=overlay-tls13.conf;overlay-ec.conf
30    extra_configs:
31      - CONFIG_MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED=y
32      - CONFIG_SERVER_PORT=4002
33    harness_config:
34      pytest_args: ["--server-type", "1.3-ephemeral", "--port", "4002"]
35  net.sockets.tls13.ephemeral_kex.tickets:
36    extra_args:
37      - EXTRA_CONF_FILE=overlay-tls13.conf;overlay-ec.conf
38    extra_configs:
39      - CONFIG_MBEDTLS_TLS_SESSION_TICKETS=y
40      - CONFIG_MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED=y
41      - CONFIG_SERVER_PORT=4003
42    harness_config:
43      pytest_args: ["--server-type", "1.3-ephemeral-tickets", "--port", "4003"]
44  net.sockets.tls13.psk_kex.tickets:
45    extra_args:
46      - EXTRA_CONF_FILE=overlay-tls13.conf
47    extra_configs:
48      - CONFIG_MBEDTLS_TLS_SESSION_TICKETS=y
49      - CONFIG_MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED=y
50      - CONFIG_SERVER_PORT=4004
51    harness_config:
52      pytest_args: ["--server-type", "1.3-psk-tickets", "--port", "4004"]
53