Tom Rini | 0344c60 | 2024-10-08 13:56:50 -0600 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | # tls13-kex-modes.sh |
| 4 | # |
| 5 | # Copyright The Mbed TLS Contributors |
| 6 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
| 7 | # |
| 8 | |
| 9 | # DO NOT ADD NEW TEST CASES INTO THIS FILE. The left cases will be generated by |
| 10 | # scripts in future(#6280) |
| 11 | |
| 12 | requires_gnutls_tls1_3 |
| 13 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 14 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 15 | run_test "TLS 1.3: G->m: all/psk, good" \ |
| 16 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 17 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 18 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 19 | localhost" \ |
| 20 | 0 \ |
| 21 | -s "found psk key exchange modes extension" \ |
| 22 | -s "found pre_shared_key extension" \ |
| 23 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 24 | -s "Found PSK KEX MODE" \ |
| 25 | -s "Pre shared key found" \ |
| 26 | -S "No usable PSK or ticket" \ |
| 27 | -s "key exchange mode: psk$" \ |
| 28 | -S "key exchange mode: psk_ephemeral" \ |
| 29 | -S "key exchange mode: ephemeral" |
| 30 | |
| 31 | requires_gnutls_tls1_3 |
| 32 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 33 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 34 | run_test "TLS 1.3: G->m: all/psk, fail, key id mismatch" \ |
| 35 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 36 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 37 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 38 | localhost" \ |
| 39 | 1 \ |
| 40 | -s "found psk key exchange modes extension" \ |
| 41 | -s "found pre_shared_key extension" \ |
| 42 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 43 | -s "Found PSK KEX MODE" \ |
| 44 | -s "No usable PSK or ticket" \ |
| 45 | -S "key exchange mode: psk$" \ |
| 46 | -S "key exchange mode: psk_ephemeral" \ |
| 47 | -S "key exchange mode: ephemeral" |
| 48 | |
| 49 | requires_gnutls_tls1_3 |
| 50 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 51 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 52 | run_test "TLS 1.3: G->m: all/psk, fail, key material mismatch" \ |
| 53 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 54 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 55 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 56 | localhost" \ |
| 57 | 1 \ |
| 58 | -s "found psk key exchange modes extension" \ |
| 59 | -s "found pre_shared_key extension" \ |
| 60 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 61 | -s "Found PSK KEX MODE" \ |
| 62 | -s "Invalid binder." \ |
| 63 | -S "key exchange mode: psk$" \ |
| 64 | -S "key exchange mode: psk_ephemeral" \ |
| 65 | -S "key exchange mode: ephemeral" |
| 66 | |
| 67 | requires_gnutls_tls1_3 |
| 68 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 69 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 70 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk, good" \ |
| 71 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 72 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 73 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 74 | localhost" \ |
| 75 | 0 \ |
| 76 | -s "found psk key exchange modes extension" \ |
| 77 | -s "found pre_shared_key extension" \ |
| 78 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 79 | -s "Found PSK KEX MODE" \ |
| 80 | -s "Pre shared key found" \ |
| 81 | -S "No usable PSK or ticket" \ |
| 82 | -s "key exchange mode: psk$" \ |
| 83 | -S "key exchange mode: psk_ephemeral" \ |
| 84 | -S "key exchange mode: ephemeral" |
| 85 | |
| 86 | requires_gnutls_tls1_3 |
| 87 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 88 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 89 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk, fail, key id mismatch" \ |
| 90 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 91 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 92 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 93 | localhost" \ |
| 94 | 1 \ |
| 95 | -s "found psk key exchange modes extension" \ |
| 96 | -s "found pre_shared_key extension" \ |
| 97 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 98 | -s "Found PSK KEX MODE" \ |
| 99 | -s "No usable PSK or ticket" \ |
| 100 | -S "key exchange mode: psk$" \ |
| 101 | -S "key exchange mode: psk_ephemeral" \ |
| 102 | -S "key exchange mode: ephemeral" |
| 103 | |
| 104 | requires_gnutls_tls1_3 |
| 105 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 106 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 107 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk, fail, key material mismatch" \ |
| 108 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 109 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 110 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 111 | localhost" \ |
| 112 | 1 \ |
| 113 | -s "found psk key exchange modes extension" \ |
| 114 | -s "found pre_shared_key extension" \ |
| 115 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 116 | -s "Found PSK KEX MODE" \ |
| 117 | -s "Invalid binder." \ |
| 118 | -S "key exchange mode: psk$" \ |
| 119 | -S "key exchange mode: psk_ephemeral" \ |
| 120 | -S "key exchange mode: ephemeral" |
| 121 | |
| 122 | requires_gnutls_tls1_3 |
| 123 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 124 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 125 | run_test "TLS 1.3: G->m: ephemeral_all/psk_ephemeral, good" \ |
| 126 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 127 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 128 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 129 | localhost" \ |
| 130 | 0 \ |
| 131 | -s "found psk key exchange modes extension" \ |
| 132 | -s "found pre_shared_key extension" \ |
| 133 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 134 | -S "Found PSK KEX MODE" \ |
| 135 | -s "Pre shared key found" \ |
| 136 | -S "No usable PSK or ticket" \ |
| 137 | -S "key exchange mode: psk$" \ |
| 138 | -s "key exchange mode: psk_ephemeral" \ |
| 139 | -S "key exchange mode: ephemeral" |
| 140 | |
| 141 | requires_gnutls_tls1_3 |
| 142 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 143 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 144 | run_test "TLS 1.3: G->m: ephemeral_all/psk_ephemeral, fail, key id mismatch" \ |
| 145 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 146 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 147 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 148 | localhost" \ |
| 149 | 1 \ |
| 150 | -s "found psk key exchange modes extension" \ |
| 151 | -s "found pre_shared_key extension" \ |
| 152 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 153 | -S "Found PSK KEX MODE" \ |
| 154 | -s "No usable PSK or ticket" \ |
| 155 | -S "key exchange mode: psk$" \ |
| 156 | -S "key exchange mode: psk_ephemeral" \ |
| 157 | -S "key exchange mode: ephemeral" |
| 158 | |
| 159 | requires_gnutls_tls1_3 |
| 160 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 161 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 162 | run_test "TLS 1.3: G->m: ephemeral_all/psk_ephemeral, fail, key material mismatch" \ |
| 163 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 164 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 165 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 166 | localhost" \ |
| 167 | 1 \ |
| 168 | -s "found psk key exchange modes extension" \ |
| 169 | -s "found pre_shared_key extension" \ |
| 170 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 171 | -S "Found PSK KEX MODE" \ |
| 172 | -s "Invalid binder." \ |
| 173 | -S "key exchange mode: psk$" \ |
| 174 | -S "key exchange mode: psk_ephemeral" \ |
| 175 | -S "key exchange mode: ephemeral" |
| 176 | |
| 177 | requires_gnutls_tls1_3 |
| 178 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 179 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 180 | run_test "TLS 1.3: G->m: all/psk_ephemeral, good" \ |
| 181 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 182 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 183 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 184 | localhost" \ |
| 185 | 0 \ |
| 186 | -s "found psk key exchange modes extension" \ |
| 187 | -s "found pre_shared_key extension" \ |
| 188 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 189 | -s "Found PSK KEX MODE" \ |
| 190 | -s "Pre shared key found" \ |
| 191 | -S "No usable PSK or ticket" \ |
| 192 | -S "key exchange mode: psk$" \ |
| 193 | -s "key exchange mode: psk_ephemeral" \ |
| 194 | -S "key exchange mode: ephemeral" |
| 195 | |
| 196 | requires_gnutls_tls1_3 |
| 197 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 198 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 199 | run_test "TLS 1.3: G->m: all/psk_ephemeral, fail, key id mismatch" \ |
| 200 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 201 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 202 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 203 | localhost" \ |
| 204 | 1 \ |
| 205 | -s "found psk key exchange modes extension" \ |
| 206 | -s "found pre_shared_key extension" \ |
| 207 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 208 | -s "Found PSK KEX MODE" \ |
| 209 | -s "No usable PSK or ticket" \ |
| 210 | -S "key exchange mode: psk$" \ |
| 211 | -S "key exchange mode: psk_ephemeral" \ |
| 212 | -S "key exchange mode: ephemeral" |
| 213 | |
| 214 | requires_gnutls_tls1_3 |
| 215 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 216 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 217 | run_test "TLS 1.3: G->m: all/psk_ephemeral, fail, key material mismatch" \ |
| 218 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 219 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 220 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 221 | localhost" \ |
| 222 | 1 \ |
| 223 | -s "found psk key exchange modes extension" \ |
| 224 | -s "found pre_shared_key extension" \ |
| 225 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 226 | -s "Found PSK KEX MODE" \ |
| 227 | -s "Invalid binder." \ |
| 228 | -S "key exchange mode: psk$" \ |
| 229 | -S "key exchange mode: psk_ephemeral" \ |
| 230 | -S "key exchange mode: ephemeral" |
| 231 | |
| 232 | requires_gnutls_tls1_3 |
| 233 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 234 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 235 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_ephemeral, fail, no common kex mode" \ |
| 236 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 237 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 238 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 239 | localhost" \ |
| 240 | 1 \ |
| 241 | -s "found psk key exchange modes extension" \ |
| 242 | -s "found pre_shared_key extension" \ |
| 243 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 244 | -s "Found PSK KEX MODE" \ |
| 245 | -S "key exchange mode: psk$" \ |
| 246 | -S "key exchange mode: psk_ephemeral" \ |
| 247 | -S "key exchange mode: ephemeral" |
| 248 | |
| 249 | requires_gnutls_tls1_3 |
| 250 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 251 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 252 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 253 | run_test "TLS 1.3: G->m: ephemeral_all/psk_all, good" \ |
| 254 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 255 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 256 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 257 | localhost" \ |
| 258 | 0 \ |
| 259 | -s "found psk key exchange modes extension" \ |
| 260 | -s "found pre_shared_key extension" \ |
| 261 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 262 | -S "Found PSK KEX MODE" \ |
| 263 | -s "Pre shared key found" \ |
| 264 | -S "No usable PSK or ticket" \ |
| 265 | -S "key exchange mode: psk$" \ |
| 266 | -s "key exchange mode: psk_ephemeral" \ |
| 267 | -S "key exchange mode: ephemeral" |
| 268 | |
| 269 | requires_gnutls_tls1_3 |
| 270 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 271 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 272 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 273 | run_test "TLS 1.3: G->m: ephemeral_all/psk_all, fail, key id mismatch" \ |
| 274 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 275 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 276 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 277 | localhost" \ |
| 278 | 1 \ |
| 279 | -s "found psk key exchange modes extension" \ |
| 280 | -s "found pre_shared_key extension" \ |
| 281 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 282 | -S "Found PSK KEX MODE" \ |
| 283 | -s "No usable PSK or ticket" \ |
| 284 | -S "key exchange mode: psk$" \ |
| 285 | -S "key exchange mode: psk_ephemeral" \ |
| 286 | -S "key exchange mode: ephemeral" |
| 287 | |
| 288 | requires_gnutls_tls1_3 |
| 289 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 290 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 291 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 292 | run_test "TLS 1.3: G->m: ephemeral_all/psk_all, fail, key material mismatch" \ |
| 293 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 294 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 295 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 296 | localhost" \ |
| 297 | 1 \ |
| 298 | -s "found psk key exchange modes extension" \ |
| 299 | -s "found pre_shared_key extension" \ |
| 300 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 301 | -S "Found PSK KEX MODE" \ |
| 302 | -s "Invalid binder." \ |
| 303 | -S "key exchange mode: psk$" \ |
| 304 | -S "key exchange mode: psk_ephemeral" \ |
| 305 | -S "key exchange mode: ephemeral" |
| 306 | |
| 307 | requires_gnutls_tls1_3 |
| 308 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 309 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 310 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 311 | run_test "TLS 1.3: G->m: all/psk_all, good" \ |
| 312 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 313 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 314 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 315 | localhost" \ |
| 316 | 0 \ |
| 317 | -s "found psk key exchange modes extension" \ |
| 318 | -s "found pre_shared_key extension" \ |
| 319 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 320 | -s "Found PSK KEX MODE" \ |
| 321 | -s "Pre shared key found" \ |
| 322 | -S "No usable PSK or ticket" \ |
| 323 | -S "key exchange mode: psk$" \ |
| 324 | -s "key exchange mode: psk_ephemeral" \ |
| 325 | -S "key exchange mode: ephemeral" |
| 326 | |
| 327 | requires_gnutls_tls1_3 |
| 328 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 329 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 330 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 331 | run_test "TLS 1.3: G->m: all/psk_all, fail, key id mismatch" \ |
| 332 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 333 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 334 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 335 | localhost" \ |
| 336 | 1 \ |
| 337 | -s "found psk key exchange modes extension" \ |
| 338 | -s "found pre_shared_key extension" \ |
| 339 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 340 | -s "Found PSK KEX MODE" \ |
| 341 | -s "No usable PSK or ticket" \ |
| 342 | -S "key exchange mode: psk$" \ |
| 343 | -S "key exchange mode: psk_ephemeral" \ |
| 344 | -S "key exchange mode: ephemeral" |
| 345 | |
| 346 | requires_gnutls_tls1_3 |
| 347 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 348 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 349 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 350 | run_test "TLS 1.3: G->m: all/psk_all, fail, key material mismatch" \ |
| 351 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 352 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 353 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 354 | localhost" \ |
| 355 | 1 \ |
| 356 | -s "found psk key exchange modes extension" \ |
| 357 | -s "found pre_shared_key extension" \ |
| 358 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 359 | -s "Found PSK KEX MODE" \ |
| 360 | -s "Invalid binder." \ |
| 361 | -S "key exchange mode: psk$" \ |
| 362 | -S "key exchange mode: psk_ephemeral" \ |
| 363 | -S "key exchange mode: ephemeral" |
| 364 | |
| 365 | requires_gnutls_tls1_3 |
| 366 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 367 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 368 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 369 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_all, good" \ |
| 370 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 371 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 372 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 373 | localhost" \ |
| 374 | 0 \ |
| 375 | -s "found psk key exchange modes extension" \ |
| 376 | -s "found pre_shared_key extension" \ |
| 377 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 378 | -s "Found PSK KEX MODE" \ |
| 379 | -s "Pre shared key found" \ |
| 380 | -S "No usable PSK or ticket" \ |
| 381 | -s "key exchange mode: psk$" \ |
| 382 | -S "key exchange mode: psk_ephemeral" \ |
| 383 | -S "key exchange mode: ephemeral" |
| 384 | |
| 385 | requires_gnutls_tls1_3 |
| 386 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 387 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 388 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 389 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_all, fail, key id mismatch" \ |
| 390 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 391 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 392 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 393 | localhost" \ |
| 394 | 1 \ |
| 395 | -s "found psk key exchange modes extension" \ |
| 396 | -s "found pre_shared_key extension" \ |
| 397 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 398 | -s "Found PSK KEX MODE" \ |
| 399 | -s "No usable PSK or ticket" \ |
| 400 | -S "key exchange mode: psk$" \ |
| 401 | -S "key exchange mode: psk_ephemeral" \ |
| 402 | -S "key exchange mode: ephemeral" |
| 403 | |
| 404 | requires_gnutls_tls1_3 |
| 405 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 406 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 407 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 408 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_all, fail, key material mismatch" \ |
| 409 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 410 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 411 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 412 | localhost" \ |
| 413 | 1 \ |
| 414 | -s "found psk key exchange modes extension" \ |
| 415 | -s "found pre_shared_key extension" \ |
| 416 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 417 | -s "Found PSK KEX MODE" \ |
| 418 | -s "Invalid binder." \ |
| 419 | -S "key exchange mode: psk$" \ |
| 420 | -S "key exchange mode: psk_ephemeral" \ |
| 421 | -S "key exchange mode: ephemeral" |
| 422 | |
| 423 | requires_gnutls_tls1_3 |
| 424 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 425 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 426 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 427 | run_test "TLS 1.3: G->m: ephemeral_all/ephemeral_all, good" \ |
| 428 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 429 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 430 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 431 | localhost" \ |
| 432 | 0 \ |
| 433 | -s "found psk key exchange modes extension" \ |
| 434 | -s "found pre_shared_key extension" \ |
| 435 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 436 | -S "Found PSK KEX MODE" \ |
| 437 | -s "Pre shared key found" \ |
| 438 | -S "No usable PSK or ticket" \ |
| 439 | -S "key exchange mode: psk$" \ |
| 440 | -s "key exchange mode: psk_ephemeral" \ |
| 441 | -S "key exchange mode: ephemeral" |
| 442 | |
| 443 | requires_gnutls_tls1_3 |
| 444 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 445 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 446 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 447 | run_test "TLS 1.3: G->m: ephemeral_all/ephemeral_all, good, key id mismatch, dhe." \ |
| 448 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 449 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 450 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 451 | localhost" \ |
| 452 | 0 \ |
| 453 | -s "found psk key exchange modes extension" \ |
| 454 | -s "found pre_shared_key extension" \ |
| 455 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 456 | -S "Found PSK KEX MODE" \ |
| 457 | -s "No usable PSK or ticket" \ |
| 458 | -S "key exchange mode: psk$" \ |
| 459 | -S "key exchange mode: psk_ephemeral" \ |
| 460 | -s "key exchange mode: ephemeral" |
| 461 | |
| 462 | requires_gnutls_tls1_3 |
| 463 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 464 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 465 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 466 | run_test "TLS 1.3: G->m: ephemeral_all/ephemeral_all, fail, key material mismatch" \ |
| 467 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 468 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 469 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 470 | localhost" \ |
| 471 | 1 \ |
| 472 | -s "found psk key exchange modes extension" \ |
| 473 | -s "found pre_shared_key extension" \ |
| 474 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 475 | -S "Found PSK KEX MODE" \ |
| 476 | -s "Invalid binder." \ |
| 477 | -S "key exchange mode: psk$" \ |
| 478 | -S "key exchange mode: psk_ephemeral" \ |
| 479 | -S "key exchange mode: ephemeral" |
| 480 | |
| 481 | requires_gnutls_tls1_3 |
| 482 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 483 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 484 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 485 | run_test "TLS 1.3: G->m: all/ephemeral_all, good" \ |
| 486 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 487 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 488 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 489 | localhost" \ |
| 490 | 0 \ |
| 491 | -s "found psk key exchange modes extension" \ |
| 492 | -s "found pre_shared_key extension" \ |
| 493 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 494 | -s "Found PSK KEX MODE" \ |
| 495 | -s "Pre shared key found" \ |
| 496 | -S "No usable PSK or ticket" \ |
| 497 | -S "key exchange mode: psk$" \ |
| 498 | -s "key exchange mode: psk_ephemeral" \ |
| 499 | -S "key exchange mode: ephemeral" |
| 500 | |
| 501 | requires_gnutls_tls1_3 |
| 502 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 503 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 504 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 505 | run_test "TLS 1.3: G->m: all/ephemeral_all, good, key id mismatch, dhe." \ |
| 506 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 507 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 508 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 509 | localhost" \ |
| 510 | 0 \ |
| 511 | -s "found psk key exchange modes extension" \ |
| 512 | -s "found pre_shared_key extension" \ |
| 513 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 514 | -s "Found PSK KEX MODE" \ |
| 515 | -s "No usable PSK or ticket" \ |
| 516 | -S "key exchange mode: psk$" \ |
| 517 | -S "key exchange mode: psk_ephemeral" \ |
| 518 | -s "key exchange mode: ephemeral" |
| 519 | |
| 520 | requires_gnutls_tls1_3 |
| 521 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 522 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 523 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 524 | run_test "TLS 1.3: G->m: all/ephemeral_all, fail, key material mismatch" \ |
| 525 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 526 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 527 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 528 | localhost" \ |
| 529 | 1 \ |
| 530 | -s "found psk key exchange modes extension" \ |
| 531 | -s "found pre_shared_key extension" \ |
| 532 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 533 | -s "Found PSK KEX MODE" \ |
| 534 | -s "Invalid binder." \ |
| 535 | -S "key exchange mode: psk$" \ |
| 536 | -S "key exchange mode: psk_ephemeral" \ |
| 537 | -S "key exchange mode: ephemeral" |
| 538 | |
| 539 | requires_gnutls_tls1_3 |
| 540 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 541 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 542 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 543 | run_test "TLS 1.3: G->m: psk_or_ephemeral/ephemeral_all, good" \ |
| 544 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 545 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 546 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 547 | localhost" \ |
| 548 | 0 \ |
| 549 | -s "found psk key exchange modes extension" \ |
| 550 | -s "found pre_shared_key extension" \ |
| 551 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 552 | -s "Found PSK KEX MODE" \ |
| 553 | -s "No suitable PSK key exchange mode" \ |
| 554 | -S "Pre shared key found" \ |
| 555 | -s "No usable PSK or ticket" \ |
| 556 | -S "key exchange mode: psk$" \ |
| 557 | -S "key exchange mode: psk_ephemeral" \ |
| 558 | -s "key exchange mode: ephemeral" |
| 559 | |
| 560 | requires_gnutls_tls1_3 |
| 561 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 562 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 563 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 564 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 565 | run_test "TLS 1.3: G->m: ephemeral_all/all, good" \ |
| 566 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 567 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 568 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 569 | localhost" \ |
| 570 | 0 \ |
| 571 | -s "found psk key exchange modes extension" \ |
| 572 | -s "found pre_shared_key extension" \ |
| 573 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 574 | -S "Found PSK KEX MODE" \ |
| 575 | -s "Pre shared key found" \ |
| 576 | -S "No usable PSK or ticket" \ |
| 577 | -S "key exchange mode: psk$" \ |
| 578 | -s "key exchange mode: psk_ephemeral" \ |
| 579 | -S "key exchange mode: ephemeral" |
| 580 | |
| 581 | requires_gnutls_tls1_3 |
| 582 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 583 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 584 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 585 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 586 | run_test "TLS 1.3: G->m: ephemeral_all/all, good, key id mismatch, dhe." \ |
| 587 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 588 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 589 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 590 | localhost" \ |
| 591 | 0 \ |
| 592 | -s "found psk key exchange modes extension" \ |
| 593 | -s "found pre_shared_key extension" \ |
| 594 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 595 | -S "Found PSK KEX MODE" \ |
| 596 | -s "No usable PSK or ticket" \ |
| 597 | -S "key exchange mode: psk$" \ |
| 598 | -S "key exchange mode: psk_ephemeral" \ |
| 599 | -s "key exchange mode: ephemeral" |
| 600 | |
| 601 | requires_gnutls_tls1_3 |
| 602 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 603 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 604 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 605 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 606 | run_test "TLS 1.3: G->m: ephemeral_all/all, fail, key material mismatch" \ |
| 607 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 608 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 609 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 610 | localhost" \ |
| 611 | 1 \ |
| 612 | -s "found psk key exchange modes extension" \ |
| 613 | -s "found pre_shared_key extension" \ |
| 614 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 615 | -S "Found PSK KEX MODE" \ |
| 616 | -s "Invalid binder." \ |
| 617 | -S "key exchange mode: psk$" \ |
| 618 | -S "key exchange mode: psk_ephemeral" \ |
| 619 | -S "key exchange mode: ephemeral" |
| 620 | |
| 621 | requires_gnutls_tls1_3 |
| 622 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 623 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 624 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 625 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 626 | run_test "TLS 1.3: G->m: all/all, good" \ |
| 627 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 628 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 629 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 630 | localhost" \ |
| 631 | 0 \ |
| 632 | -s "found psk key exchange modes extension" \ |
| 633 | -s "found pre_shared_key extension" \ |
| 634 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 635 | -s "Found PSK KEX MODE" \ |
| 636 | -s "Pre shared key found" \ |
| 637 | -S "No usable PSK or ticket" \ |
| 638 | -S "key exchange mode: psk$" \ |
| 639 | -s "key exchange mode: psk_ephemeral" \ |
| 640 | -S "key exchange mode: ephemeral" |
| 641 | |
| 642 | requires_gnutls_tls1_3 |
| 643 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 644 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 645 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 646 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 647 | run_test "TLS 1.3: G->m: all/all, good, key id mismatch, dhe." \ |
| 648 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 649 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 650 | --pskusername wrong_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 651 | localhost" \ |
| 652 | 0 \ |
| 653 | -s "found psk key exchange modes extension" \ |
| 654 | -s "found pre_shared_key extension" \ |
| 655 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 656 | -s "Found PSK KEX MODE" \ |
| 657 | -s "No usable PSK or ticket" \ |
| 658 | -S "key exchange mode: psk$" \ |
| 659 | -S "key exchange mode: psk_ephemeral" \ |
| 660 | -s "key exchange mode: ephemeral" |
| 661 | |
| 662 | requires_gnutls_tls1_3 |
| 663 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 664 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 665 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 666 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 667 | run_test "TLS 1.3: G->m: all/all, fail, key material mismatch" \ |
| 668 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 669 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 670 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 671 | localhost" \ |
| 672 | 1 \ |
| 673 | -s "found psk key exchange modes extension" \ |
| 674 | -s "found pre_shared_key extension" \ |
| 675 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 676 | -s "Found PSK KEX MODE" \ |
| 677 | -s "Invalid binder." \ |
| 678 | -S "key exchange mode: psk$" \ |
| 679 | -S "key exchange mode: psk_ephemeral" \ |
| 680 | -S "key exchange mode: ephemeral" |
| 681 | |
| 682 | requires_gnutls_tls1_3 |
| 683 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 684 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 685 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 686 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 687 | run_test "TLS 1.3: G->m: psk_or_ephemeral/all, good" \ |
| 688 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 689 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 690 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 691 | localhost" \ |
| 692 | 0 \ |
| 693 | -s "found psk key exchange modes extension" \ |
| 694 | -s "found pre_shared_key extension" \ |
| 695 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 696 | -s "Found PSK KEX MODE" \ |
| 697 | -s "Pre shared key found" \ |
| 698 | -S "No usable PSK or ticket" \ |
| 699 | -S "key exchange mode: psk$" \ |
| 700 | -S "key exchange mode: psk_ephemeral" \ |
| 701 | -s "key exchange mode: ephemeral" |
| 702 | |
| 703 | requires_gnutls_tls1_3 |
| 704 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 705 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 706 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 707 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 708 | run_test "TLS 1.3: G->m: psk_or_ephemeral/all, fail, key material mismatch" \ |
| 709 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 710 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 711 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 712 | localhost" \ |
| 713 | 1 \ |
| 714 | -s "found psk key exchange modes extension" \ |
| 715 | -s "found pre_shared_key extension" \ |
| 716 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 717 | -s "Found PSK KEX MODE" \ |
| 718 | -s "Invalid binder." \ |
| 719 | -S "key exchange mode: psk$" \ |
| 720 | -S "key exchange mode: psk_ephemeral" \ |
| 721 | -S "key exchange mode: ephemeral" |
| 722 | |
| 723 | requires_gnutls_tls1_3 |
| 724 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 725 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 726 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 727 | run_test "TLS 1.3: G->m: ephemeral_all/psk_or_ephemeral, good" \ |
| 728 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 729 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK:+VERS-TLS1.3 \ |
| 730 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 731 | localhost" \ |
| 732 | 0 \ |
| 733 | -s "found psk key exchange modes extension" \ |
| 734 | -s "found pre_shared_key extension" \ |
| 735 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 736 | -S "Found PSK KEX MODE" \ |
| 737 | -s "No suitable PSK key exchange mode" \ |
| 738 | -S "Pre shared key found" \ |
| 739 | -s "No usable PSK or ticket" \ |
| 740 | -S "key exchange mode: psk$" \ |
| 741 | -S "key exchange mode: psk_ephemeral" \ |
| 742 | -s "key exchange mode: ephemeral" |
| 743 | |
| 744 | requires_gnutls_tls1_3 |
| 745 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 746 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 747 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 748 | run_test "TLS 1.3: G->m: all/psk_or_ephemeral, good" \ |
| 749 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 750 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 751 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 752 | localhost" \ |
| 753 | 0 \ |
| 754 | -s "found psk key exchange modes extension" \ |
| 755 | -s "found pre_shared_key extension" \ |
| 756 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 757 | -s "Found PSK KEX MODE" \ |
| 758 | -s "Pre shared key found" \ |
| 759 | -S "No usable PSK or ticket" \ |
| 760 | -S "key exchange mode: psk$" \ |
| 761 | -S "key exchange mode: psk_ephemeral" \ |
| 762 | -s "key exchange mode: ephemeral" |
| 763 | |
| 764 | requires_gnutls_tls1_3 |
| 765 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 766 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 767 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 768 | run_test "TLS 1.3: G->m: all/psk_or_ephemeral, fail, key material mismatch" \ |
| 769 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 770 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 771 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 772 | localhost" \ |
| 773 | 1 \ |
| 774 | -s "found psk key exchange modes extension" \ |
| 775 | -s "found pre_shared_key extension" \ |
| 776 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 777 | -s "Found PSK KEX MODE" \ |
| 778 | -s "Invalid binder." \ |
| 779 | -S "key exchange mode: psk$" \ |
| 780 | -S "key exchange mode: psk_ephemeral" \ |
| 781 | -S "key exchange mode: ephemeral" |
| 782 | |
| 783 | requires_gnutls_tls1_3 |
| 784 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 785 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 786 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 787 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_or_ephemeral, good" \ |
| 788 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 789 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 790 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 791 | localhost" \ |
| 792 | 0 \ |
| 793 | -s "found psk key exchange modes extension" \ |
| 794 | -s "found pre_shared_key extension" \ |
| 795 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 796 | -s "Found PSK KEX MODE" \ |
| 797 | -s "Pre shared key found" \ |
| 798 | -S "No usable PSK or ticket" \ |
| 799 | -S "key exchange mode: psk$" \ |
| 800 | -S "key exchange mode: psk_ephemeral" \ |
| 801 | -s "key exchange mode: ephemeral" |
| 802 | |
| 803 | requires_gnutls_tls1_3 |
| 804 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 805 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 806 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 807 | run_test "TLS 1.3: G->m: psk_or_ephemeral/psk_or_ephemeral, fail, key material mismatch" \ |
| 808 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 809 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:-ECDHE-PSK:-DHE-PSK:+PSK:+VERS-TLS1.3 \ |
| 810 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f71 \ |
| 811 | localhost" \ |
| 812 | 1 \ |
| 813 | -s "found psk key exchange modes extension" \ |
| 814 | -s "found pre_shared_key extension" \ |
| 815 | -S "Found PSK_EPHEMERAL KEX MODE" \ |
| 816 | -s "Found PSK KEX MODE" \ |
| 817 | -s "Invalid binder." \ |
| 818 | -S "key exchange mode: psk$" \ |
| 819 | -S "key exchange mode: psk_ephemeral" \ |
| 820 | -S "key exchange mode: ephemeral" |
| 821 | |
| 822 | requires_gnutls_tls1_3 |
| 823 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 824 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 825 | requires_config_enabled PSA_WANT_ALG_ECDH |
| 826 | run_test "TLS 1.3: G->m: psk_ephemeral group(secp256r1) check, good" \ |
| 827 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 828 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP256R1 \ |
| 829 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 830 | localhost" \ |
| 831 | 0 \ |
| 832 | -s "write selected_group: secp256r1" \ |
| 833 | -S "key exchange mode: psk$" \ |
| 834 | -s "key exchange mode: psk_ephemeral" \ |
| 835 | -S "key exchange mode: ephemeral" |
| 836 | |
| 837 | requires_gnutls_tls1_3 |
| 838 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 839 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 840 | requires_config_enabled PSA_WANT_ALG_ECDH |
| 841 | run_test "TLS 1.3: G->m: psk_ephemeral group(secp384r1) check, good" \ |
| 842 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 843 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP384R1 \ |
| 844 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 845 | localhost" \ |
| 846 | 0 \ |
| 847 | -s "write selected_group: secp384r1" \ |
| 848 | -S "key exchange mode: psk$" \ |
| 849 | -s "key exchange mode: psk_ephemeral" \ |
| 850 | -S "key exchange mode: ephemeral" |
| 851 | |
| 852 | requires_gnutls_tls1_3 |
| 853 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 854 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 855 | requires_config_enabled PSA_WANT_ALG_ECDH |
| 856 | run_test "TLS 1.3: G->m: psk_ephemeral group(secp521r1) check, good" \ |
| 857 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 858 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP521R1 \ |
| 859 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 860 | localhost" \ |
| 861 | 0 \ |
| 862 | -s "write selected_group: secp521r1" \ |
| 863 | -S "key exchange mode: psk$" \ |
| 864 | -s "key exchange mode: psk_ephemeral" \ |
| 865 | -S "key exchange mode: ephemeral" |
| 866 | |
| 867 | requires_gnutls_tls1_3 |
| 868 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 869 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 870 | requires_config_enabled PSA_WANT_ALG_ECDH |
| 871 | run_test "TLS 1.3: G->m: psk_ephemeral group(x25519) check, good" \ |
| 872 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 873 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-X25519 \ |
| 874 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 875 | localhost" \ |
| 876 | 0 \ |
| 877 | -s "write selected_group: x25519" \ |
| 878 | -S "key exchange mode: psk$" \ |
| 879 | -s "key exchange mode: psk_ephemeral" \ |
| 880 | -S "key exchange mode: ephemeral" |
| 881 | |
| 882 | requires_gnutls_tls1_3 |
| 883 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 884 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 885 | requires_config_enabled PSA_WANT_ALG_ECDH |
| 886 | run_test "TLS 1.3: G->m: psk_ephemeral group(x448) check, good" \ |
| 887 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 888 | "$G_NEXT_CLI -d 10 --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-X448 \ |
| 889 | --pskusername Client_identity --pskkey=6162636465666768696a6b6c6d6e6f70 \ |
| 890 | localhost" \ |
| 891 | 0 \ |
| 892 | -s "write selected_group: x448" \ |
| 893 | -S "key exchange mode: psk$" \ |
| 894 | -s "key exchange mode: psk_ephemeral" \ |
| 895 | -S "key exchange mode: ephemeral" |
| 896 | |
| 897 | requires_openssl_tls1_3 |
| 898 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 899 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 900 | run_test "TLS 1.3: O->m: ephemeral_all/psk, fail, no common kex mode" \ |
| 901 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 902 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 903 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 904 | 1 \ |
| 905 | -s "found psk key exchange modes extension" \ |
| 906 | -s "found pre_shared_key extension" \ |
| 907 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 908 | -S "Found PSK KEX MODE" \ |
| 909 | -S "key exchange mode: psk$" \ |
| 910 | -S "key exchange mode: psk_ephemeral" \ |
| 911 | -S "key exchange mode: ephemeral" |
| 912 | |
| 913 | requires_openssl_tls1_3 |
| 914 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 915 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 916 | run_test "TLS 1.3: O->m: all/psk, good" \ |
| 917 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 918 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 919 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 920 | 0 \ |
| 921 | -s "found psk key exchange modes extension" \ |
| 922 | -s "found pre_shared_key extension" \ |
| 923 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 924 | -s "Found PSK KEX MODE" \ |
| 925 | -s "Pre shared key found" \ |
| 926 | -S "No usable PSK or ticket" \ |
| 927 | -s "key exchange mode: psk$" \ |
| 928 | -S "key exchange mode: psk_ephemeral" \ |
| 929 | -S "key exchange mode: ephemeral" |
| 930 | |
| 931 | requires_openssl_tls1_3 |
| 932 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 933 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 934 | run_test "TLS 1.3: O->m: all/psk, fail, key id mismatch" \ |
| 935 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 936 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 937 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 938 | 1 \ |
| 939 | -s "found psk key exchange modes extension" \ |
| 940 | -s "found pre_shared_key extension" \ |
| 941 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 942 | -s "Found PSK KEX MODE" \ |
| 943 | -s "No usable PSK or ticket" \ |
| 944 | -S "key exchange mode: psk$" \ |
| 945 | -S "key exchange mode: psk_ephemeral" \ |
| 946 | -S "key exchange mode: ephemeral" |
| 947 | |
| 948 | requires_openssl_tls1_3 |
| 949 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 950 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 951 | run_test "TLS 1.3: O->m: all/psk, fail, key material mismatch" \ |
| 952 | "$P_SRV tls13_kex_modes=psk debug_level=5 $(get_srv_psk_list)" \ |
| 953 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 954 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 955 | 1 \ |
| 956 | -s "found psk key exchange modes extension" \ |
| 957 | -s "found pre_shared_key extension" \ |
| 958 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 959 | -s "Found PSK KEX MODE" \ |
| 960 | -s "Invalid binder." \ |
| 961 | -S "key exchange mode: psk$" \ |
| 962 | -S "key exchange mode: psk_ephemeral" \ |
| 963 | -S "key exchange mode: ephemeral" |
| 964 | |
| 965 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 966 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 967 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 968 | run_test "TLS 1.3: O->m: ephemeral_all/psk_ephemeral, good" \ |
| 969 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 970 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 971 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 972 | 0 \ |
| 973 | -s "found psk key exchange modes extension" \ |
| 974 | -s "found pre_shared_key extension" \ |
| 975 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 976 | -S "Found PSK KEX MODE" \ |
| 977 | -s "Pre shared key found" \ |
| 978 | -S "No usable PSK or ticket" \ |
| 979 | -S "key exchange mode: psk$" \ |
| 980 | -s "key exchange mode: psk_ephemeral" \ |
| 981 | -S "key exchange mode: ephemeral" |
| 982 | |
| 983 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 984 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 985 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 986 | run_test "TLS 1.3: O->m: ephemeral_all/psk_ephemeral, fail, key id mismatch" \ |
| 987 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 988 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 989 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 990 | 1 \ |
| 991 | -s "found psk key exchange modes extension" \ |
| 992 | -s "found pre_shared_key extension" \ |
| 993 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 994 | -S "Found PSK KEX MODE" \ |
| 995 | -s "No usable PSK or ticket" \ |
| 996 | -S "key exchange mode: psk$" \ |
| 997 | -S "key exchange mode: psk_ephemeral" \ |
| 998 | -S "key exchange mode: ephemeral" |
| 999 | |
| 1000 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1001 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1002 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1003 | run_test "TLS 1.3: O->m: ephemeral_all/psk_ephemeral, fail, key material mismatch" \ |
| 1004 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1005 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1006 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1007 | 1 \ |
| 1008 | -s "found psk key exchange modes extension" \ |
| 1009 | -s "found pre_shared_key extension" \ |
| 1010 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1011 | -S "Found PSK KEX MODE" \ |
| 1012 | -s "Invalid binder." \ |
| 1013 | -S "key exchange mode: psk$" \ |
| 1014 | -S "key exchange mode: psk_ephemeral" \ |
| 1015 | -S "key exchange mode: ephemeral" |
| 1016 | |
| 1017 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1018 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1019 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1020 | run_test "TLS 1.3: O->m: all/psk_ephemeral, good" \ |
| 1021 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1022 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1023 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1024 | 0 \ |
| 1025 | -s "found psk key exchange modes extension" \ |
| 1026 | -s "found pre_shared_key extension" \ |
| 1027 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1028 | -s "Found PSK KEX MODE" \ |
| 1029 | -s "Pre shared key found" \ |
| 1030 | -S "No usable PSK or ticket" \ |
| 1031 | -S "key exchange mode: psk$" \ |
| 1032 | -s "key exchange mode: psk_ephemeral" \ |
| 1033 | -S "key exchange mode: ephemeral" |
| 1034 | |
| 1035 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1036 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1037 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1038 | run_test "TLS 1.3: O->m: all/psk_ephemeral, fail, key id mismatch" \ |
| 1039 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1040 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1041 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1042 | 1 \ |
| 1043 | -s "found psk key exchange modes extension" \ |
| 1044 | -s "found pre_shared_key extension" \ |
| 1045 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1046 | -s "Found PSK KEX MODE" \ |
| 1047 | -s "No usable PSK or ticket" \ |
| 1048 | -S "key exchange mode: psk$" \ |
| 1049 | -S "key exchange mode: psk_ephemeral" \ |
| 1050 | -S "key exchange mode: ephemeral" |
| 1051 | |
| 1052 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1053 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1054 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1055 | run_test "TLS 1.3: O->m: all/psk_ephemeral, fail, key material mismatch" \ |
| 1056 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1057 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1058 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1059 | 1 \ |
| 1060 | -s "found psk key exchange modes extension" \ |
| 1061 | -s "found pre_shared_key extension" \ |
| 1062 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1063 | -s "Found PSK KEX MODE" \ |
| 1064 | -s "Invalid binder." \ |
| 1065 | -S "key exchange mode: psk$" \ |
| 1066 | -S "key exchange mode: psk_ephemeral" \ |
| 1067 | -S "key exchange mode: ephemeral" |
| 1068 | |
| 1069 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1070 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1071 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1072 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1073 | run_test "TLS 1.3: O->m: ephemeral_all/psk_all, good" \ |
| 1074 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 1075 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1076 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1077 | 0 \ |
| 1078 | -s "found psk key exchange modes extension" \ |
| 1079 | -s "found pre_shared_key extension" \ |
| 1080 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1081 | -S "Found PSK KEX MODE" \ |
| 1082 | -s "Pre shared key found" \ |
| 1083 | -S "No usable PSK or ticket" \ |
| 1084 | -S "key exchange mode: psk$" \ |
| 1085 | -s "key exchange mode: psk_ephemeral" \ |
| 1086 | -S "key exchange mode: ephemeral" |
| 1087 | |
| 1088 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1089 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1090 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1091 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1092 | run_test "TLS 1.3: O->m: ephemeral_all/psk_all, fail, key id mismatch" \ |
| 1093 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 1094 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1095 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1096 | 1 \ |
| 1097 | -s "found psk key exchange modes extension" \ |
| 1098 | -s "found pre_shared_key extension" \ |
| 1099 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1100 | -S "Found PSK KEX MODE" \ |
| 1101 | -s "No usable PSK or ticket" \ |
| 1102 | -S "key exchange mode: psk$" \ |
| 1103 | -S "key exchange mode: psk_ephemeral" \ |
| 1104 | -S "key exchange mode: ephemeral" |
| 1105 | |
| 1106 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1107 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1108 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1109 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1110 | run_test "TLS 1.3: O->m: ephemeral_all/psk_all, fail, key material mismatch" \ |
| 1111 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 1112 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1113 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1114 | 1 \ |
| 1115 | -s "found psk key exchange modes extension" \ |
| 1116 | -s "found pre_shared_key extension" \ |
| 1117 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1118 | -S "Found PSK KEX MODE" \ |
| 1119 | -s "Invalid binder." \ |
| 1120 | -S "key exchange mode: psk$" \ |
| 1121 | -S "key exchange mode: psk_ephemeral" \ |
| 1122 | -S "key exchange mode: ephemeral" |
| 1123 | |
| 1124 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1125 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1126 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1127 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1128 | run_test "TLS 1.3: O->m: all/psk_all, good" \ |
| 1129 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 1130 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1131 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1132 | 0 \ |
| 1133 | -s "found psk key exchange modes extension" \ |
| 1134 | -s "found pre_shared_key extension" \ |
| 1135 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1136 | -s "Found PSK KEX MODE" \ |
| 1137 | -s "Pre shared key found" \ |
| 1138 | -S "No usable PSK or ticket" \ |
| 1139 | -S "key exchange mode: psk$" \ |
| 1140 | -s "key exchange mode: psk_ephemeral" \ |
| 1141 | -S "key exchange mode: ephemeral" |
| 1142 | |
| 1143 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1144 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1145 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1146 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1147 | run_test "TLS 1.3: O->m: all/psk_all, fail, key id mismatch" \ |
| 1148 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 1149 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1150 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1151 | 1 \ |
| 1152 | -s "found psk key exchange modes extension" \ |
| 1153 | -s "found pre_shared_key extension" \ |
| 1154 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1155 | -s "Found PSK KEX MODE" \ |
| 1156 | -s "No usable PSK or ticket" \ |
| 1157 | -S "key exchange mode: psk$" \ |
| 1158 | -S "key exchange mode: psk_ephemeral" \ |
| 1159 | -S "key exchange mode: ephemeral" |
| 1160 | |
| 1161 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1162 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1163 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1164 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1165 | run_test "TLS 1.3: O->m: all/psk_all, fail, key material mismatch" \ |
| 1166 | "$P_SRV tls13_kex_modes=psk_all debug_level=5 $(get_srv_psk_list)" \ |
| 1167 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1168 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1169 | 1 \ |
| 1170 | -s "found psk key exchange modes extension" \ |
| 1171 | -s "found pre_shared_key extension" \ |
| 1172 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1173 | -s "Found PSK KEX MODE" \ |
| 1174 | -s "Invalid binder." \ |
| 1175 | -S "key exchange mode: psk$" \ |
| 1176 | -S "key exchange mode: psk_ephemeral" \ |
| 1177 | -S "key exchange mode: ephemeral" |
| 1178 | |
| 1179 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1180 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1181 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1182 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1183 | run_test "TLS 1.3: O->m: ephemeral_all/ephemeral_all, good" \ |
| 1184 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 1185 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1186 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1187 | 0 \ |
| 1188 | -s "found psk key exchange modes extension" \ |
| 1189 | -s "found pre_shared_key extension" \ |
| 1190 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1191 | -S "Found PSK KEX MODE" \ |
| 1192 | -s "Pre shared key found" \ |
| 1193 | -S "No usable PSK or ticket" \ |
| 1194 | -S "key exchange mode: psk$" \ |
| 1195 | -s "key exchange mode: psk_ephemeral" \ |
| 1196 | -S "key exchange mode: ephemeral" |
| 1197 | |
| 1198 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1199 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1200 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1201 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1202 | run_test "TLS 1.3: O->m: ephemeral_all/ephemeral_all, good, key id mismatch, dhe." \ |
| 1203 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 1204 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1205 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1206 | 0 \ |
| 1207 | -s "found psk key exchange modes extension" \ |
| 1208 | -s "found pre_shared_key extension" \ |
| 1209 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1210 | -S "Found PSK KEX MODE" \ |
| 1211 | -s "No usable PSK or ticket" \ |
| 1212 | -S "key exchange mode: psk$" \ |
| 1213 | -S "key exchange mode: psk_ephemeral" \ |
| 1214 | -s "key exchange mode: ephemeral" |
| 1215 | |
| 1216 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1217 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1218 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1219 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1220 | run_test "TLS 1.3: O->m: ephemeral_all/ephemeral_all, fail, key material mismatch" \ |
| 1221 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 1222 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1223 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1224 | 1 \ |
| 1225 | -s "found psk key exchange modes extension" \ |
| 1226 | -s "found pre_shared_key extension" \ |
| 1227 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1228 | -S "Found PSK KEX MODE" \ |
| 1229 | -s "Invalid binder." \ |
| 1230 | -S "key exchange mode: psk$" \ |
| 1231 | -S "key exchange mode: psk_ephemeral" \ |
| 1232 | -S "key exchange mode: ephemeral" |
| 1233 | |
| 1234 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1235 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1236 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1237 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1238 | run_test "TLS 1.3: O->m: all/ephemeral_all, good" \ |
| 1239 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 1240 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1241 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1242 | 0 \ |
| 1243 | -s "found psk key exchange modes extension" \ |
| 1244 | -s "found pre_shared_key extension" \ |
| 1245 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1246 | -s "Found PSK KEX MODE" \ |
| 1247 | -s "Pre shared key found" \ |
| 1248 | -S "No usable PSK or ticket" \ |
| 1249 | -S "key exchange mode: psk$" \ |
| 1250 | -s "key exchange mode: psk_ephemeral" \ |
| 1251 | -S "key exchange mode: ephemeral" |
| 1252 | |
| 1253 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1254 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1255 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1256 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1257 | run_test "TLS 1.3: O->m: all/ephemeral_all, good, key id mismatch, dhe." \ |
| 1258 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 1259 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1260 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1261 | 0 \ |
| 1262 | -s "found psk key exchange modes extension" \ |
| 1263 | -s "found pre_shared_key extension" \ |
| 1264 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1265 | -s "Found PSK KEX MODE" \ |
| 1266 | -s "No usable PSK or ticket" \ |
| 1267 | -S "key exchange mode: psk$" \ |
| 1268 | -S "key exchange mode: psk_ephemeral" \ |
| 1269 | -s "key exchange mode: ephemeral" |
| 1270 | |
| 1271 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1272 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1273 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1274 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1275 | run_test "TLS 1.3: O->m: all/ephemeral_all, fail, key material mismatch" \ |
| 1276 | "$P_SRV tls13_kex_modes=ephemeral_all debug_level=5 $(get_srv_psk_list)" \ |
| 1277 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1278 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1279 | 1 \ |
| 1280 | -s "found psk key exchange modes extension" \ |
| 1281 | -s "found pre_shared_key extension" \ |
| 1282 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1283 | -s "Found PSK KEX MODE" \ |
| 1284 | -s "Invalid binder." \ |
| 1285 | -S "key exchange mode: psk$" \ |
| 1286 | -S "key exchange mode: psk_ephemeral" \ |
| 1287 | -S "key exchange mode: ephemeral" |
| 1288 | |
| 1289 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1290 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1291 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1292 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1293 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1294 | run_test "TLS 1.3: O->m: ephemeral_all/all, good" \ |
| 1295 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 1296 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1297 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1298 | 0 \ |
| 1299 | -s "found psk key exchange modes extension" \ |
| 1300 | -s "found pre_shared_key extension" \ |
| 1301 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1302 | -S "Found PSK KEX MODE" \ |
| 1303 | -s "Pre shared key found" \ |
| 1304 | -S "No usable PSK or ticket" \ |
| 1305 | -S "key exchange mode: psk$" \ |
| 1306 | -s "key exchange mode: psk_ephemeral" \ |
| 1307 | -S "key exchange mode: ephemeral" |
| 1308 | |
| 1309 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1310 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1311 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1312 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1313 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1314 | run_test "TLS 1.3: O->m: ephemeral_all/all, good, key id mismatch, dhe." \ |
| 1315 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 1316 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1317 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1318 | 0 \ |
| 1319 | -s "found psk key exchange modes extension" \ |
| 1320 | -s "found pre_shared_key extension" \ |
| 1321 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1322 | -S "Found PSK KEX MODE" \ |
| 1323 | -s "No usable PSK or ticket" \ |
| 1324 | -S "key exchange mode: psk$" \ |
| 1325 | -S "key exchange mode: psk_ephemeral" \ |
| 1326 | -s "key exchange mode: ephemeral" |
| 1327 | |
| 1328 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1329 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1330 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1331 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1332 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1333 | run_test "TLS 1.3: O->m: ephemeral_all/all, fail, key material mismatch" \ |
| 1334 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 1335 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1336 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1337 | 1 \ |
| 1338 | -s "found psk key exchange modes extension" \ |
| 1339 | -s "found pre_shared_key extension" \ |
| 1340 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1341 | -S "Found PSK KEX MODE" \ |
| 1342 | -s "Invalid binder." \ |
| 1343 | -S "key exchange mode: psk$" \ |
| 1344 | -S "key exchange mode: psk_ephemeral" \ |
| 1345 | -S "key exchange mode: ephemeral" |
| 1346 | |
| 1347 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1348 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1349 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1350 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1351 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1352 | run_test "TLS 1.3: O->m: all/all, good" \ |
| 1353 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 1354 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1355 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1356 | 0 \ |
| 1357 | -s "found psk key exchange modes extension" \ |
| 1358 | -s "found pre_shared_key extension" \ |
| 1359 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1360 | -s "Found PSK KEX MODE" \ |
| 1361 | -s "Pre shared key found" \ |
| 1362 | -S "No usable PSK or ticket" \ |
| 1363 | -S "key exchange mode: psk$" \ |
| 1364 | -s "key exchange mode: psk_ephemeral" \ |
| 1365 | -S "key exchange mode: ephemeral" |
| 1366 | |
| 1367 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1368 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1369 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1370 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1371 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1372 | run_test "TLS 1.3: O->m: all/all, good, key id mismatch, dhe." \ |
| 1373 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 1374 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1375 | -psk_identity wrong_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1376 | 0 \ |
| 1377 | -s "found psk key exchange modes extension" \ |
| 1378 | -s "found pre_shared_key extension" \ |
| 1379 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1380 | -s "Found PSK KEX MODE" \ |
| 1381 | -s "No usable PSK or ticket" \ |
| 1382 | -S "key exchange mode: psk$" \ |
| 1383 | -S "key exchange mode: psk_ephemeral" \ |
| 1384 | -s "key exchange mode: ephemeral" |
| 1385 | |
| 1386 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1387 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1388 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1389 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1390 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1391 | run_test "TLS 1.3: O->m: all/all, fail, key material mismatch" \ |
| 1392 | "$P_SRV tls13_kex_modes=all debug_level=5 $(get_srv_psk_list)" \ |
| 1393 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1394 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1395 | 1 \ |
| 1396 | -s "found psk key exchange modes extension" \ |
| 1397 | -s "found pre_shared_key extension" \ |
| 1398 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1399 | -s "Found PSK KEX MODE" \ |
| 1400 | -s "Invalid binder." \ |
| 1401 | -S "key exchange mode: psk$" \ |
| 1402 | -S "key exchange mode: psk_ephemeral" \ |
| 1403 | -S "key exchange mode: ephemeral" |
| 1404 | |
| 1405 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1406 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1407 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1408 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1409 | run_test "TLS 1.3: O->m: ephemeral_all/psk_or_ephemeral, good" \ |
| 1410 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1411 | "$O_NEXT_CLI -tls1_3 -msg \ |
| 1412 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1413 | 0 \ |
| 1414 | -s "found psk key exchange modes extension" \ |
| 1415 | -s "found pre_shared_key extension" \ |
| 1416 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1417 | -S "Found PSK KEX MODE" \ |
| 1418 | -s "No suitable PSK key exchange mode" \ |
| 1419 | -S "Pre shared key found" \ |
| 1420 | -s "No usable PSK or ticket" \ |
| 1421 | -S "key exchange mode: psk$" \ |
| 1422 | -S "key exchange mode: psk_ephemeral" \ |
| 1423 | -s "key exchange mode: ephemeral" |
| 1424 | |
| 1425 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1426 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1427 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1428 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1429 | run_test "TLS 1.3: O->m: all/psk_or_ephemeral, good" \ |
| 1430 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1431 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1432 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1433 | 0 \ |
| 1434 | -s "found psk key exchange modes extension" \ |
| 1435 | -s "found pre_shared_key extension" \ |
| 1436 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1437 | -s "Found PSK KEX MODE" \ |
| 1438 | -s "Pre shared key found" \ |
| 1439 | -S "No usable PSK or ticket" \ |
| 1440 | -S "key exchange mode: psk$" \ |
| 1441 | -S "key exchange mode: psk_ephemeral" \ |
| 1442 | -s "key exchange mode: ephemeral" |
| 1443 | |
| 1444 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1445 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1446 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1447 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1448 | run_test "TLS 1.3: O->m: all/psk_or_ephemeral, fail, key material mismatch" \ |
| 1449 | "$P_SRV tls13_kex_modes=psk_or_ephemeral debug_level=5 $(get_srv_psk_list)" \ |
| 1450 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex \ |
| 1451 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f71" \ |
| 1452 | 1 \ |
| 1453 | -s "found psk key exchange modes extension" \ |
| 1454 | -s "found pre_shared_key extension" \ |
| 1455 | -s "Found PSK_EPHEMERAL KEX MODE" \ |
| 1456 | -s "Found PSK KEX MODE" \ |
| 1457 | -s "Invalid binder." \ |
| 1458 | -S "key exchange mode: psk$" \ |
| 1459 | -S "key exchange mode: psk_ephemeral" \ |
| 1460 | -S "key exchange mode: ephemeral" |
| 1461 | |
| 1462 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1463 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1464 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1465 | run_test "TLS 1.3: O->m: psk_ephemeral group(secp256r1) check, good" \ |
| 1466 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 1467 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups P-256 \ |
| 1468 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1469 | 0 \ |
| 1470 | -s "write selected_group: secp256r1" \ |
| 1471 | -S "key exchange mode: psk$" \ |
| 1472 | -s "key exchange mode: psk_ephemeral" \ |
| 1473 | -S "key exchange mode: ephemeral" |
| 1474 | |
| 1475 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1476 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1477 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1478 | run_test "TLS 1.3: O->m: psk_ephemeral group(secp384r1) check, good" \ |
| 1479 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 1480 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups secp384r1 \ |
| 1481 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1482 | 0 \ |
| 1483 | -s "write selected_group: secp384r1" \ |
| 1484 | -S "key exchange mode: psk$" \ |
| 1485 | -s "key exchange mode: psk_ephemeral" \ |
| 1486 | -S "key exchange mode: ephemeral" |
| 1487 | |
| 1488 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1489 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1490 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1491 | run_test "TLS 1.3: O->m: psk_ephemeral group(secp521r1) check, good" \ |
| 1492 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 1493 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups secp521r1 \ |
| 1494 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1495 | 0 \ |
| 1496 | -s "write selected_group: secp521r1" \ |
| 1497 | -S "key exchange mode: psk$" \ |
| 1498 | -s "key exchange mode: psk_ephemeral" \ |
| 1499 | -S "key exchange mode: ephemeral" |
| 1500 | |
| 1501 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1502 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1503 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1504 | run_test "TLS 1.3: O->m: psk_ephemeral group(x25519) check, good" \ |
| 1505 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 1506 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups X25519 \ |
| 1507 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1508 | 0 \ |
| 1509 | -s "write selected_group: x25519" \ |
| 1510 | -S "key exchange mode: psk$" \ |
| 1511 | -s "key exchange mode: psk_ephemeral" \ |
| 1512 | -S "key exchange mode: ephemeral" |
| 1513 | |
| 1514 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1515 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1516 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1517 | run_test "TLS 1.3: O->m: psk_ephemeral group(x448) check, good" \ |
| 1518 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_identity=Client_identity psk=6162636465666768696a6b6c6d6e6f70" \ |
| 1519 | "$O_NEXT_CLI -tls1_3 -msg -allow_no_dhe_kex -groups X448 \ |
| 1520 | -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70" \ |
| 1521 | 0 \ |
| 1522 | -s "write selected_group: x448" \ |
| 1523 | -S "key exchange mode: psk$" \ |
| 1524 | -s "key exchange mode: psk_ephemeral" \ |
| 1525 | -S "key exchange mode: ephemeral" |
| 1526 | |
| 1527 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1528 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 1529 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1530 | run_test "TLS 1.3 O->m: psk_ephemeral group(secp256r1->secp384r1) check, good" \ |
| 1531 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_list=Client_identity,6162636465666768696a6b6c6d6e6f70,abc,dead,def,beef groups=secp384r1" \ |
| 1532 | "$O_NEXT_CLI_NO_CERT -tls1_3 -msg -allow_no_dhe_kex -psk_identity Client_identity -psk 6162636465666768696a6b6c6d6e6f70 -groups P-256:P-384" \ |
| 1533 | 0 \ |
| 1534 | -s "write selected_group: secp384r1" \ |
| 1535 | -s "HRR selected_group: secp384r1" \ |
| 1536 | -S "key exchange mode: psk$" \ |
| 1537 | -s "key exchange mode: psk_ephemeral" \ |
| 1538 | -S "key exchange mode: ephemeral" |
| 1539 | |
| 1540 | requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C |
| 1541 | requires_gnutls_tls1_3 |
| 1542 | requires_gnutls_next_no_ticket |
| 1543 | requires_gnutls_next_disable_tls13_compat |
| 1544 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1545 | requires_config_enabled PSA_WANT_ALG_ECDH |
| 1546 | run_test "TLS 1.3 G->m: psk_ephemeral group(secp256r1->secp384r1) check, good" \ |
| 1547 | "$P_SRV tls13_kex_modes=psk_ephemeral debug_level=5 psk_list=Client_identity,6162636465666768696a6b6c6d6e6f70,abc,dead,def,beef groups=secp384r1" \ |
| 1548 | "$G_NEXT_CLI_NO_CERT --debug=4 --single-key-share --priority NORMAL:-VERS-ALL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK:+VERS-TLS1.3:-GROUP-ALL:+GROUP-SECP256R1:+GROUP-SECP384R1 --pskusername Client_identity --pskkey 6162636465666768696a6b6c6d6e6f70 localhost" \ |
| 1549 | 0 \ |
| 1550 | -s "write selected_group: secp384r1" \ |
| 1551 | -s "HRR selected_group: secp384r1" \ |
| 1552 | -S "key exchange mode: psk$" \ |
| 1553 | -s "key exchange mode: psk_ephemeral" \ |
| 1554 | -S "key exchange mode: ephemeral" |
| 1555 | |
| 1556 | |
| 1557 | # Add psk test cases for mbedtls client code |
| 1558 | |
| 1559 | # MbedTls->MbedTLS kinds of tls13_kex_modes |
| 1560 | # PSK mode in client |
| 1561 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1562 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1563 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1564 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1565 | run_test "TLS 1.3: m->m: psk/psk, good" \ |
| 1566 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1567 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1568 | 0 \ |
| 1569 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1570 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1571 | -c "client hello, adding PSK binder list" \ |
| 1572 | -c "Selected key exchange mode: psk$" \ |
| 1573 | -c "HTTP/1.0 200 OK" |
| 1574 | |
| 1575 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1576 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1577 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1578 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1579 | run_test "TLS 1.3: m->m: psk/psk, fail, key id mismatch" \ |
| 1580 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1581 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk" \ |
| 1582 | 1 \ |
| 1583 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1584 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1585 | -c "client hello, adding PSK binder list" \ |
| 1586 | -s "No usable PSK or ticket" |
| 1587 | |
| 1588 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1589 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1590 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1591 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1592 | run_test "TLS 1.3: m->m: psk/psk, fail, key material mismatch" \ |
| 1593 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1594 | "$P_CLI nbio=2 debug_level=5 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk" \ |
| 1595 | 1 \ |
| 1596 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1597 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1598 | -c "client hello, adding PSK binder list" \ |
| 1599 | -s "Invalid binder." |
| 1600 | |
| 1601 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1602 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1603 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1604 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1605 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1606 | run_test "TLS 1.3: m->m: psk/psk_ephemeral, fail - no common kex mode" \ |
| 1607 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1608 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1609 | 1 \ |
| 1610 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1611 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1612 | -c "client hello, adding PSK binder list" \ |
| 1613 | -s "ClientHello message misses mandatory extensions." |
| 1614 | |
| 1615 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1616 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1617 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1618 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1619 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1620 | run_test "TLS 1.3: m->m: psk/ephemeral, fail - no common kex mode" \ |
| 1621 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1622 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1623 | 1 \ |
| 1624 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1625 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1626 | -c "client hello, adding PSK binder list" \ |
| 1627 | -s "ClientHello message misses mandatory extensions." |
| 1628 | |
| 1629 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1630 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1631 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1632 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1633 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1634 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1635 | run_test "TLS 1.3: m->m: psk/ephemeral_all, fail - no common kex mode" \ |
| 1636 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 1637 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1638 | 1 \ |
| 1639 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1640 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1641 | -c "client hello, adding PSK binder list" \ |
| 1642 | -s "ClientHello message misses mandatory extensions." |
| 1643 | |
| 1644 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1645 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1646 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1647 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1648 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1649 | run_test "TLS 1.3: m->m: psk/psk_all, good" \ |
| 1650 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1651 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1652 | 0 \ |
| 1653 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1654 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1655 | -c "client hello, adding PSK binder list" \ |
| 1656 | -c "Selected key exchange mode: psk$" \ |
| 1657 | -c "HTTP/1.0 200 OK" |
| 1658 | |
| 1659 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1660 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1661 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1662 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1663 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1664 | run_test "TLS 1.3: m->m: psk/psk_all, fail, key id mismatch" \ |
| 1665 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1666 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk" \ |
| 1667 | 1 \ |
| 1668 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1669 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1670 | -c "client hello, adding PSK binder list" \ |
| 1671 | -s "No usable PSK or ticket" \ |
| 1672 | -s "ClientHello message misses mandatory extensions." |
| 1673 | |
| 1674 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1675 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1676 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1677 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1678 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1679 | run_test "TLS 1.3: m->m: psk/psk_all, fail, key material mismatch" \ |
| 1680 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1681 | "$P_CLI nbio=2 debug_level=5 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk" \ |
| 1682 | 1 \ |
| 1683 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1684 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1685 | -c "client hello, adding PSK binder list" \ |
| 1686 | -s "Invalid binder." |
| 1687 | |
| 1688 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1689 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1690 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1691 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1692 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1693 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1694 | run_test "TLS 1.3: m->m: psk/all, good" \ |
| 1695 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 1696 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1697 | 0 \ |
| 1698 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1699 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1700 | -c "client hello, adding PSK binder list" \ |
| 1701 | -c "Selected key exchange mode: psk$" \ |
| 1702 | -c "HTTP/1.0 200 OK" |
| 1703 | |
| 1704 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1705 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1706 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1707 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1708 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1709 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1710 | run_test "TLS 1.3: m->m: psk/all, fail, key id mismatch" \ |
| 1711 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 1712 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk" \ |
| 1713 | 1 \ |
| 1714 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1715 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1716 | -c "client hello, adding PSK binder list" \ |
| 1717 | -s "No usable PSK or ticket" \ |
| 1718 | -s "ClientHello message misses mandatory extensions." |
| 1719 | |
| 1720 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1721 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1722 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1723 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1724 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1725 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1726 | run_test "TLS 1.3: m->m: psk/all, fail, key material mismatch" \ |
| 1727 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 1728 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk" \ |
| 1729 | 1 \ |
| 1730 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1731 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1732 | -c "client hello, adding PSK binder list" \ |
| 1733 | -s "Invalid binder." |
| 1734 | |
| 1735 | # psk_ephemeral mode in client |
| 1736 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1737 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1738 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1739 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1740 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1741 | run_test "TLS 1.3: m->m: psk_ephemeral/psk, fail - no common kex mode" \ |
| 1742 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1743 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1744 | 1 \ |
| 1745 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1746 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1747 | -c "client hello, adding PSK binder list" \ |
| 1748 | -s "ClientHello message misses mandatory extensions." |
| 1749 | |
| 1750 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1751 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1752 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1753 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1754 | run_test "TLS 1.3: m->m: psk_ephemeral/psk_ephemeral, good" \ |
| 1755 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1756 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1757 | 0 \ |
| 1758 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1759 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1760 | -c "client hello, adding PSK binder list" \ |
| 1761 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 1762 | -c "HTTP/1.0 200 OK" |
| 1763 | |
| 1764 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1765 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1766 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1767 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1768 | run_test "TLS 1.3: m->m: psk_ephemeral/psk_ephemeral, fail, key id mismatch" \ |
| 1769 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1770 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \ |
| 1771 | 1 \ |
| 1772 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1773 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1774 | -c "client hello, adding PSK binder list" \ |
| 1775 | -s "No usable PSK or ticket" \ |
| 1776 | -s "ClientHello message misses mandatory extensions." |
| 1777 | |
| 1778 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1779 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1780 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1781 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1782 | run_test "TLS 1.3: m->m: psk_ephemeral/psk_ephemeral, fail, key material mismatch" \ |
| 1783 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1784 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk_ephemeral" \ |
| 1785 | 1 \ |
| 1786 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1787 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1788 | -c "client hello, adding PSK binder list" \ |
| 1789 | -s "Invalid binder." |
| 1790 | |
| 1791 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1792 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1793 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1794 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 1795 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1796 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1797 | run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral, fail - no common kex mode" \ |
| 1798 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1799 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1800 | 1 \ |
| 1801 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1802 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1803 | -c "client hello, adding PSK binder list" |
| 1804 | |
| 1805 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1806 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1807 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1808 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1809 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1810 | run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral_all, good" \ |
| 1811 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 1812 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1813 | 0 \ |
| 1814 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1815 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1816 | -c "client hello, adding PSK binder list" \ |
| 1817 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 1818 | -c "HTTP/1.0 200 OK" |
| 1819 | |
| 1820 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1821 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 1822 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1823 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1824 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1825 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1826 | run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral_all, fail, key id mismatch" \ |
| 1827 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 1828 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \ |
| 1829 | 1 \ |
| 1830 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1831 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1832 | -c "client hello, adding PSK binder list" \ |
| 1833 | -s "No usable PSK or ticket" |
| 1834 | |
| 1835 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1836 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1837 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1838 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1839 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1840 | run_test "TLS 1.3: m->m: psk_ephemeral/ephemeral_all, fail, key material mismatch" \ |
| 1841 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 1842 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c psk=040506 tls13_kex_modes=psk_ephemeral" \ |
| 1843 | 1 \ |
| 1844 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1845 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1846 | -c "client hello, adding PSK binder list" \ |
| 1847 | -s "Invalid binder." |
| 1848 | |
| 1849 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1850 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1851 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1852 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1853 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1854 | run_test "TLS 1.3: m->m: psk_ephemeral/psk_all, good" \ |
| 1855 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1856 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1857 | 0 \ |
| 1858 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1859 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1860 | -c "client hello, adding PSK binder list" \ |
| 1861 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 1862 | -c "HTTP/1.0 200 OK" |
| 1863 | |
| 1864 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1865 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1866 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1867 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1868 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1869 | run_test "TLS 1.3: m->m: psk_ephemeral/psk_all, fail, key id mismatch" \ |
| 1870 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1871 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \ |
| 1872 | 1 \ |
| 1873 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1874 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1875 | -c "client hello, adding PSK binder list" \ |
| 1876 | -s "No usable PSK or ticket" \ |
| 1877 | -s "ClientHello message misses mandatory extensions." |
| 1878 | |
| 1879 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1880 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1881 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1882 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1883 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1884 | run_test "TLS 1.3: m->m: psk_ephemeral/psk_all, fail, key material mismatch" \ |
| 1885 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1886 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1887 | 1 \ |
| 1888 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1889 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1890 | -c "client hello, adding PSK binder list" \ |
| 1891 | -s "Invalid binder." |
| 1892 | |
| 1893 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1894 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1895 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1896 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1897 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1898 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1899 | run_test "TLS 1.3: m->m: psk_ephemeral/all, good" \ |
| 1900 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 1901 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1902 | 0 \ |
| 1903 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1904 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1905 | -c "client hello, adding PSK binder list" \ |
| 1906 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 1907 | -c "HTTP/1.0 200 OK" |
| 1908 | |
| 1909 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1910 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1911 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1912 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1913 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1914 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1915 | run_test "TLS 1.3: m->m: psk_ephemeral/all, fail, key id mismatch" \ |
| 1916 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 1917 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_ephemeral" \ |
| 1918 | 1 \ |
| 1919 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1920 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1921 | -c "client hello, adding PSK binder list" \ |
| 1922 | -s "No usable PSK or ticket" \ |
| 1923 | |
| 1924 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1925 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1926 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1927 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1928 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1929 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1930 | run_test "TLS 1.3: m->m: psk_ephemeral/all, fail, key material mismatch" \ |
| 1931 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 1932 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1933 | 1 \ |
| 1934 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 1935 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 1936 | -c "client hello, adding PSK binder list" \ |
| 1937 | -s "Invalid binder." |
| 1938 | |
| 1939 | # ephemeral mode in client |
| 1940 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1941 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1942 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1943 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1944 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1945 | run_test "TLS 1.3: m->m: ephemeral/psk, fail - no common kex mode" \ |
| 1946 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 1947 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1948 | 1 \ |
| 1949 | -s "ClientHello message misses mandatory extensions." |
| 1950 | |
| 1951 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1952 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1953 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1954 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1955 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1956 | run_test "TLS 1.3: m->m: ephemeral/psk_ephemeral, fail - no common kex mode" \ |
| 1957 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 1958 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1959 | 1 \ |
| 1960 | -s "ClientHello message misses mandatory extensions." |
| 1961 | |
| 1962 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1963 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1964 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1965 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1966 | run_test "TLS 1.3: m->m: ephemeral/ephemeral, good" \ |
| 1967 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1968 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1969 | 0 \ |
| 1970 | -c "Selected key exchange mode: ephemeral" \ |
| 1971 | -c "HTTP/1.0 200 OK" |
| 1972 | |
| 1973 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1974 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1975 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1976 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1977 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1978 | run_test "TLS 1.3: m->m: ephemeral/ephemeral_all, good" \ |
| 1979 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 1980 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1981 | 0 \ |
| 1982 | -c "Selected key exchange mode: ephemeral" \ |
| 1983 | -c "HTTP/1.0 200 OK" |
| 1984 | |
| 1985 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1986 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1987 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 1988 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 1989 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 1990 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 1991 | run_test "TLS 1.3: m->m: ephemeral/psk_all, fail - no common kex mode" \ |
| 1992 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 1993 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 1994 | 1 \ |
| 1995 | -s "ClientHello message misses mandatory extensions." |
| 1996 | |
| 1997 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 1998 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 1999 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2000 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2001 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2002 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2003 | run_test "TLS 1.3: m->m: ephemeral/all, good" \ |
| 2004 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2005 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 2006 | 0 \ |
| 2007 | -c "Selected key exchange mode: ephemeral" \ |
| 2008 | -c "HTTP/1.0 200 OK" |
| 2009 | |
| 2010 | # ephemeral_all mode in client |
| 2011 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2012 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2013 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2014 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2015 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2016 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2017 | run_test "TLS 1.3: m->m: ephemeral_all/psk, fail - no common kex mode" \ |
| 2018 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2019 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2020 | 1 \ |
| 2021 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2022 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2023 | -c "client hello, adding PSK binder list" \ |
| 2024 | -s "ClientHello message misses mandatory extensions." |
| 2025 | |
| 2026 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2027 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2028 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2029 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2030 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2031 | run_test "TLS 1.3: m->m: ephemeral_all/psk_ephemeral, good" \ |
| 2032 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2033 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2034 | 0 \ |
| 2035 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2036 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2037 | -c "client hello, adding PSK binder list" \ |
| 2038 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2039 | -c "HTTP/1.0 200 OK" |
| 2040 | |
| 2041 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2042 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2043 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2044 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2045 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2046 | run_test "TLS 1.3: m->m: ephemeral_all/psk_ephemeral, fail, key id mismatch" \ |
| 2047 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2048 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \ |
| 2049 | 1 \ |
| 2050 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2051 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2052 | -c "client hello, adding PSK binder list" \ |
| 2053 | -s "No usable PSK or ticket" |
| 2054 | |
| 2055 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2056 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2057 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2058 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2059 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2060 | run_test "TLS 1.3: m->m: ephemeral_all/psk_ephemeral, fail, key material mismatch" \ |
| 2061 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2062 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2063 | 1 \ |
| 2064 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2065 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2066 | -c "client hello, adding PSK binder list" \ |
| 2067 | -s "Invalid binder." |
| 2068 | |
| 2069 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2070 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2071 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2072 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2073 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2074 | run_test "TLS 1.3: m->m: ephemeral_all/ephemeral, good" \ |
| 2075 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 2076 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2077 | 0 \ |
| 2078 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2079 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2080 | -c "client hello, adding PSK binder list" \ |
| 2081 | -s "key exchange mode: ephemeral" \ |
| 2082 | -c "Selected key exchange mode: ephemeral" \ |
| 2083 | -c "HTTP/1.0 200 OK" |
| 2084 | |
| 2085 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2086 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2087 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2088 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2089 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2090 | run_test "TLS 1.3: m->m: ephemeral_all/ephemeral_all, good" \ |
| 2091 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2092 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2093 | 0 \ |
| 2094 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2095 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2096 | -c "client hello, adding PSK binder list" \ |
| 2097 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2098 | -c "HTTP/1.0 200 OK" |
| 2099 | |
| 2100 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2101 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2102 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2103 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2104 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2105 | run_test "TLS 1.3: m->m: ephemeral_all/ephemeral_all,good,key id mismatch,fallback" \ |
| 2106 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2107 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \ |
| 2108 | 0 \ |
| 2109 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2110 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2111 | -c "client hello, adding PSK binder list" \ |
| 2112 | -s "No usable PSK or ticket" \ |
| 2113 | -s "key exchange mode: ephemeral" |
| 2114 | |
| 2115 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2116 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2117 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2118 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2119 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2120 | run_test "TLS 1.3: m->m: ephemeral_all/ephemeral_all, fail, key material mismatch" \ |
| 2121 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2122 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2123 | 1 \ |
| 2124 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2125 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2126 | -c "client hello, adding PSK binder list" \ |
| 2127 | -s "Invalid binder." |
| 2128 | |
| 2129 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2130 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2131 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2132 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2133 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2134 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2135 | run_test "TLS 1.3: m->m: ephemeral_all/psk_all, good" \ |
| 2136 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2137 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2138 | 0 \ |
| 2139 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2140 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2141 | -c "client hello, adding PSK binder list" \ |
| 2142 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2143 | -c "HTTP/1.0 200 OK" |
| 2144 | |
| 2145 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2146 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2147 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2148 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2149 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2150 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2151 | run_test "TLS 1.3: m->m: ephemeral_all/psk_all, fail, key id mismatch" \ |
| 2152 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2153 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \ |
| 2154 | 1 \ |
| 2155 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2156 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2157 | -c "client hello, adding PSK binder list" \ |
| 2158 | -s "No usable PSK or ticket" \ |
| 2159 | -s "ClientHello message misses mandatory extensions." |
| 2160 | |
| 2161 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2162 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2163 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2164 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2165 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2166 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2167 | run_test "TLS 1.3: m->m: ephemeral_all/psk_all, fail, key material mismatch" \ |
| 2168 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2169 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2170 | 1 \ |
| 2171 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2172 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2173 | -c "client hello, adding PSK binder list" \ |
| 2174 | -s "Invalid binder." |
| 2175 | |
| 2176 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2177 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2178 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2179 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2180 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2181 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2182 | run_test "TLS 1.3: m->m: ephemeral_all/all, good" \ |
| 2183 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2184 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2185 | 0 \ |
| 2186 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2187 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2188 | -c "client hello, adding PSK binder list" \ |
| 2189 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2190 | -c "HTTP/1.0 200 OK" |
| 2191 | |
| 2192 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2193 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2194 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2195 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2196 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2197 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2198 | run_test "TLS 1.3: m->m: ephemeral_all/all, good, key id mismatch, fallback" \ |
| 2199 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2200 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=ephemeral_all" \ |
| 2201 | 0 \ |
| 2202 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2203 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2204 | -c "client hello, adding PSK binder list" \ |
| 2205 | -s "No usable PSK or ticket" \ |
| 2206 | -s "key exchange mode: ephemeral" |
| 2207 | |
| 2208 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2209 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2210 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2211 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2212 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2213 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2214 | run_test "TLS 1.3: m->m: ephemeral_all/all, fail, key material mismatch" \ |
| 2215 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2216 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2217 | 1 \ |
| 2218 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2219 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2220 | -c "client hello, adding PSK binder list" \ |
| 2221 | -s "Invalid binder." |
| 2222 | |
| 2223 | # psk_all mode in client |
| 2224 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2225 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2226 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2227 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2228 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2229 | run_test "TLS 1.3: m->m: psk_all/psk, good" \ |
| 2230 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2231 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2232 | 0 \ |
| 2233 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2234 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2235 | -c "client hello, adding PSK binder list" \ |
| 2236 | -c "Selected key exchange mode: psk$" \ |
| 2237 | -c "HTTP/1.0 200 OK" |
| 2238 | |
| 2239 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2240 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2241 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2242 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2243 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2244 | run_test "TLS 1.3: m->m: psk_all/psk, fail, key id mismatch" \ |
| 2245 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2246 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \ |
| 2247 | 1 \ |
| 2248 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2249 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2250 | -c "client hello, adding PSK binder list" \ |
| 2251 | -s "ClientHello message misses mandatory extensions." |
| 2252 | |
| 2253 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2254 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2255 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2256 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2257 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2258 | run_test "TLS 1.3: m->m: psk_all/psk, fail, key material mismatch" \ |
| 2259 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2260 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2261 | 1 \ |
| 2262 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2263 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2264 | -c "client hello, adding PSK binder list" \ |
| 2265 | -s "Invalid binder." |
| 2266 | |
| 2267 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2268 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2269 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2270 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2271 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2272 | run_test "TLS 1.3: m->m: psk_all/psk_ephemeral, good" \ |
| 2273 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2274 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2275 | 0 \ |
| 2276 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2277 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2278 | -c "client hello, adding PSK binder list" \ |
| 2279 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2280 | -c "HTTP/1.0 200 OK" |
| 2281 | |
| 2282 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2283 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2284 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2285 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2286 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2287 | run_test "TLS 1.3: m->m: psk_all/psk_ephemeral, fail, key id mismatch" \ |
| 2288 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2289 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \ |
| 2290 | 1 \ |
| 2291 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2292 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2293 | -c "client hello, adding PSK binder list" \ |
| 2294 | -s "No usable PSK or ticket" \ |
| 2295 | -s "ClientHello message misses mandatory extensions." |
| 2296 | |
| 2297 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2298 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2299 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2300 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2301 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2302 | run_test "TLS 1.3: m->m: psk_all/psk_ephemeral, fail, key material mismatch" \ |
| 2303 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2304 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2305 | 1 \ |
| 2306 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2307 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2308 | -c "client hello, adding PSK binder list" \ |
| 2309 | -s "Invalid binder." |
| 2310 | |
| 2311 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2312 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2313 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2314 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2315 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2316 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2317 | run_test "TLS 1.3: m->m: psk_all/ephemeral, fail - no common kex mode" \ |
| 2318 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 2319 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2320 | 1 \ |
| 2321 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2322 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2323 | -c "client hello, adding PSK binder list" |
| 2324 | |
| 2325 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2326 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2327 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2328 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2329 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2330 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2331 | run_test "TLS 1.3: m->m: psk_all/ephemeral_all, good" \ |
| 2332 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2333 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2334 | 0 \ |
| 2335 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2336 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2337 | -c "client hello, adding PSK binder list" \ |
| 2338 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2339 | -c "HTTP/1.0 200 OK" |
| 2340 | |
| 2341 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2342 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2343 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2344 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2345 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2346 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2347 | run_test "TLS 1.3: m->m: psk_all/ephemeral_all, fail, key id mismatch" \ |
| 2348 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2349 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \ |
| 2350 | 1 \ |
| 2351 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2352 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2353 | -c "client hello, adding PSK binder list" \ |
| 2354 | -s "No usable PSK or ticket" |
| 2355 | |
| 2356 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2357 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2358 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2359 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2360 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2361 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2362 | run_test "TLS 1.3: m->m: psk_all/ephemeral_all, fail, key material mismatch" \ |
| 2363 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2364 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2365 | 1 \ |
| 2366 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2367 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2368 | -c "client hello, adding PSK binder list" \ |
| 2369 | -s "Invalid binder." |
| 2370 | |
| 2371 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2372 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2373 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2374 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2375 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2376 | run_test "TLS 1.3: m->m: psk_all/psk_all, good" \ |
| 2377 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2378 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2379 | 0 \ |
| 2380 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2381 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2382 | -c "client hello, adding PSK binder list" \ |
| 2383 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2384 | -c "HTTP/1.0 200 OK" |
| 2385 | |
| 2386 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2387 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2388 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2389 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2390 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2391 | run_test "TLS 1.3: m->m: psk_all/psk_all, fail, key id mismatch" \ |
| 2392 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2393 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \ |
| 2394 | 1 \ |
| 2395 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2396 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2397 | -c "client hello, adding PSK binder list" \ |
| 2398 | -s "No usable PSK or ticket" \ |
| 2399 | -s "ClientHello message misses mandatory extensions." |
| 2400 | |
| 2401 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2402 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2403 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2404 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2405 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2406 | run_test "TLS 1.3: m->m: psk_all/psk_all, fail, key material mismatch" \ |
| 2407 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2408 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2409 | 1 \ |
| 2410 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2411 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2412 | -c "client hello, adding PSK binder list" \ |
| 2413 | -s "Invalid binder." |
| 2414 | |
| 2415 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2416 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2417 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2418 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2419 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2420 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2421 | run_test "TLS 1.3: m->m: psk_all/all, good" \ |
| 2422 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2423 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2424 | 0 \ |
| 2425 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2426 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2427 | -c "client hello, adding PSK binder list" \ |
| 2428 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2429 | -c "HTTP/1.0 200 OK" |
| 2430 | |
| 2431 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2432 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2433 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2434 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2435 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2436 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2437 | run_test "TLS 1.3: m->m: psk_all/all, fail, key id mismatch" \ |
| 2438 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2439 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=psk_all" \ |
| 2440 | 1 \ |
| 2441 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2442 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2443 | -c "client hello, adding PSK binder list" \ |
| 2444 | -s "No usable PSK or ticket" |
| 2445 | |
| 2446 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2447 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2448 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2449 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2450 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2451 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2452 | run_test "TLS 1.3: m->m: psk_all/all, fail, key material mismatch" \ |
| 2453 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2454 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2455 | 1 \ |
| 2456 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2457 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2458 | -c "client hello, adding PSK binder list" \ |
| 2459 | -s "Invalid binder." |
| 2460 | |
| 2461 | # all mode in client |
| 2462 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2463 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2464 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2465 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2466 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2467 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2468 | run_test "TLS 1.3: m->m: all/psk, good" \ |
| 2469 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2470 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2471 | 0 \ |
| 2472 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2473 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2474 | -c "client hello, adding PSK binder list" \ |
| 2475 | -c "Selected key exchange mode: psk$" \ |
| 2476 | -c "HTTP/1.0 200 OK" |
| 2477 | |
| 2478 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2479 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2480 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2481 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2482 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2483 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2484 | run_test "TLS 1.3: m->m: all/psk, fail, key id mismatch" \ |
| 2485 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2486 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \ |
| 2487 | 1 \ |
| 2488 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2489 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2490 | -c "client hello, adding PSK binder list" \ |
| 2491 | -s "No usable PSK or ticket" \ |
| 2492 | -s "ClientHello message misses mandatory extensions." |
| 2493 | |
| 2494 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2495 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2496 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2497 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2498 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2499 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2500 | run_test "TLS 1.3: m->m: all/psk, fail, key material mismatch" \ |
| 2501 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2502 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2503 | 1 \ |
| 2504 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2505 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2506 | -c "client hello, adding PSK binder list" \ |
| 2507 | -s "Invalid binder." |
| 2508 | |
| 2509 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2510 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2511 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2512 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2513 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2514 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2515 | run_test "TLS 1.3: m->m: all/psk_ephemeral, good" \ |
| 2516 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2517 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2518 | 0 \ |
| 2519 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2520 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2521 | -c "client hello, adding PSK binder list" \ |
| 2522 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2523 | -c "HTTP/1.0 200 OK" |
| 2524 | |
| 2525 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2526 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2527 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2528 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2529 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2530 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2531 | run_test "TLS 1.3: m->m: all/psk_ephemeral, fail, key id mismatch" \ |
| 2532 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2533 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \ |
| 2534 | 1 \ |
| 2535 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2536 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2537 | -c "client hello, adding PSK binder list" \ |
| 2538 | -s "No usable PSK or ticket" \ |
| 2539 | -s "ClientHello message misses mandatory extensions." |
| 2540 | |
| 2541 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2542 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2543 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2544 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2545 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2546 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2547 | run_test "TLS 1.3: m->m: all/psk_ephemeral, fail, key material mismatch" \ |
| 2548 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2549 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2550 | 1 \ |
| 2551 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2552 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2553 | -c "client hello, adding PSK binder list" \ |
| 2554 | -s "Invalid binder." |
| 2555 | |
| 2556 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2557 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2558 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2559 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2560 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2561 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2562 | run_test "TLS 1.3: m->m: all/ephemeral, good" \ |
| 2563 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 2564 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2565 | 0 \ |
| 2566 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2567 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2568 | -c "client hello, adding PSK binder list" \ |
| 2569 | -c "Selected key exchange mode: ephemeral" \ |
| 2570 | -c "HTTP/1.0 200 OK" |
| 2571 | |
| 2572 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2573 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2574 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2575 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2576 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2577 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2578 | run_test "TLS 1.3: m->m: all/ephemeral_all, good" \ |
| 2579 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2580 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2581 | 0 \ |
| 2582 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2583 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2584 | -c "client hello, adding PSK binder list" \ |
| 2585 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2586 | -c "HTTP/1.0 200 OK" |
| 2587 | |
| 2588 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2589 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2590 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2591 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2592 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2593 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2594 | run_test "TLS 1.3: m->m: all/ephemeral_all, good, key id mismatch, fallback" \ |
| 2595 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2596 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \ |
| 2597 | 0 \ |
| 2598 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2599 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2600 | -c "client hello, adding PSK binder list" \ |
| 2601 | -s "No usable PSK or ticket" \ |
| 2602 | -c "Selected key exchange mode: ephemeral" \ |
| 2603 | -c "HTTP/1.0 200 OK" |
| 2604 | |
| 2605 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2606 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2607 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2608 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2609 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2610 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2611 | run_test "TLS 1.3: m->m: all/ephemeral_all, fail, key material mismatch" \ |
| 2612 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2613 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2614 | 1 \ |
| 2615 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2616 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2617 | -c "client hello, adding PSK binder list" \ |
| 2618 | -s "Invalid binder." |
| 2619 | |
| 2620 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2621 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2622 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2623 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2624 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2625 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2626 | run_test "TLS 1.3: m->m: all/psk_all, good" \ |
| 2627 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2628 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2629 | 0 \ |
| 2630 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2631 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2632 | -c "client hello, adding PSK binder list" \ |
| 2633 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2634 | -c "HTTP/1.0 200 OK" |
| 2635 | |
| 2636 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2637 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2638 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2639 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2640 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2641 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2642 | run_test "TLS 1.3: m->m: all/psk_all, fail, key id mismatch" \ |
| 2643 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2644 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \ |
| 2645 | 1 \ |
| 2646 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2647 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2648 | -c "client hello, adding PSK binder list" \ |
| 2649 | -s "No usable PSK or ticket" \ |
| 2650 | -s "ClientHello message misses mandatory extensions." |
| 2651 | |
| 2652 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2653 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2654 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2655 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2656 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2657 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2658 | run_test "TLS 1.3: m->m: all/psk_all, fail, key material mismatch" \ |
| 2659 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2660 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2661 | 1 \ |
| 2662 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2663 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2664 | -c "client hello, adding PSK binder list" \ |
| 2665 | -s "Invalid binder." |
| 2666 | |
| 2667 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2668 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2669 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2670 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2671 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2672 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2673 | run_test "TLS 1.3: m->m: all/all, good" \ |
| 2674 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2675 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2676 | 0 \ |
| 2677 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2678 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2679 | -c "client hello, adding PSK binder list" \ |
| 2680 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2681 | -c "HTTP/1.0 200 OK" |
| 2682 | |
| 2683 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2684 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2685 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2686 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2687 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2688 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2689 | run_test "TLS 1.3: m->m: all/all, good, key id mismatch, fallback" \ |
| 2690 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2691 | "$P_CLI nbio=2 debug_level=5 psk=010203 psk_identity=0d0e0f tls13_kex_modes=all" \ |
| 2692 | 0 \ |
| 2693 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2694 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2695 | -c "client hello, adding PSK binder list" \ |
| 2696 | -s "No usable PSK or ticket" \ |
| 2697 | -s "key exchange mode: ephemeral" |
| 2698 | |
| 2699 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2700 | requires_config_enabled MBEDTLS_SSL_SRV_C |
| 2701 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2702 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2703 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2704 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2705 | run_test "TLS 1.3: m->m: all/all, fail, key material mismatch" \ |
| 2706 | "$P_SRV nbio=2 debug_level=5 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2707 | "$P_CLI nbio=2 debug_level=5 psk=040506 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2708 | 1 \ |
| 2709 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2710 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2711 | -c "client hello, adding PSK binder list" \ |
| 2712 | -s "Invalid binder." |
| 2713 | |
| 2714 | #OPENSSL-SERVER psk mode |
| 2715 | requires_openssl_tls1_3 |
| 2716 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2717 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2718 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2719 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2720 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2721 | run_test "TLS 1.3: m->O: psk/all, good" \ |
| 2722 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \ |
| 2723 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2724 | 0 \ |
| 2725 | -c "=> write client hello" \ |
| 2726 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2727 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2728 | -c "client hello, adding PSK binder list" \ |
| 2729 | -c "<= write client hello" \ |
| 2730 | -c "Selected key exchange mode: psk$" \ |
| 2731 | -c "HTTP/1.0 200 ok" |
| 2732 | |
| 2733 | requires_openssl_tls1_3 |
| 2734 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2735 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2736 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2737 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2738 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2739 | run_test "TLS 1.3: m->O: psk/ephemeral_all, fail - no common kex mode" \ |
| 2740 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \ |
| 2741 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2742 | 1 \ |
| 2743 | -c "=> write client hello" \ |
| 2744 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2745 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2746 | -c "client hello, adding PSK binder list" \ |
| 2747 | -c "<= write client hello" \ |
| 2748 | -c "Last error was: -0x7780 - SSL - A fatal alert message was received from our peer" |
| 2749 | |
| 2750 | #OPENSSL-SERVER psk_all mode |
| 2751 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2752 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2753 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2754 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2755 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2756 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2757 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2758 | run_test "TLS 1.3: m->O: psk_all/all, good" \ |
| 2759 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \ |
| 2760 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2761 | 0 \ |
| 2762 | -c "=> write client hello" \ |
| 2763 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2764 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2765 | -c "client hello, adding PSK binder list" \ |
| 2766 | -c "<= write client hello" \ |
| 2767 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2768 | -c "HTTP/1.0 200 ok" |
| 2769 | |
| 2770 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2771 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2772 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2773 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2774 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2775 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2776 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2777 | run_test "TLS 1.3: m->O: psk_all/ephemeral_all, good" \ |
| 2778 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \ |
| 2779 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2780 | 0 \ |
| 2781 | -c "=> write client hello" \ |
| 2782 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2783 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2784 | -c "client hello, adding PSK binder list" \ |
| 2785 | -c "<= write client hello" \ |
| 2786 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2787 | -c "HTTP/1.0 200 ok" |
| 2788 | |
| 2789 | #OPENSSL-SERVER psk_ephemeral mode |
| 2790 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2791 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2792 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2793 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2794 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2795 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2796 | run_test "TLS 1.3: m->O: psk_ephemeral/all, good" \ |
| 2797 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \ |
| 2798 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2799 | 0 \ |
| 2800 | -c "=> write client hello" \ |
| 2801 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2802 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2803 | -c "client hello, adding PSK binder list" \ |
| 2804 | -c "<= write client hello" \ |
| 2805 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2806 | -c "HTTP/1.0 200 ok" |
| 2807 | |
| 2808 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2809 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2810 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2811 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2812 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2813 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2814 | run_test "TLS 1.3: m->O: psk_ephemeral/ephemeral_all, good" \ |
| 2815 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \ |
| 2816 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 2817 | 0 \ |
| 2818 | -c "=> write client hello" \ |
| 2819 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2820 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2821 | -c "client hello, adding PSK binder list" \ |
| 2822 | -c "<= write client hello" \ |
| 2823 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2824 | -c "HTTP/1.0 200 ok" |
| 2825 | |
| 2826 | #OPENSSL-SERVER ephemeral mode |
| 2827 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2828 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2829 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2830 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2831 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2832 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2833 | run_test "TLS 1.3: m->O: ephemeral/all, good" \ |
| 2834 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex" \ |
| 2835 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 2836 | 0 \ |
| 2837 | -c "Selected key exchange mode: ephemeral" \ |
| 2838 | -c "HTTP/1.0 200 ok" |
| 2839 | |
| 2840 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2841 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2842 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2843 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2844 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2845 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2846 | run_test "TLS 1.3: m->O: ephemeral/ephemeral_all, good" \ |
| 2847 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \ |
| 2848 | "$P_CLI debug_level=4 sig_algs=ecdsa_secp256r1_sha256 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 2849 | 0 \ |
| 2850 | -c "Selected key exchange mode: ephemeral" \ |
| 2851 | -c "HTTP/1.0 200 ok" |
| 2852 | |
| 2853 | #OPENSSL-SERVER ephemeral_all mode |
| 2854 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2855 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2856 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2857 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2858 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2859 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2860 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2861 | run_test "TLS 1.3: m->O: ephemeral_all/all, good" \ |
| 2862 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \ |
| 2863 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2864 | 0 \ |
| 2865 | -c "=> write client hello" \ |
| 2866 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2867 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2868 | -c "client hello, adding PSK binder list" \ |
| 2869 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2870 | -c "<= write client hello" \ |
| 2871 | -c "HTTP/1.0 200 ok" |
| 2872 | |
| 2873 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2874 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2875 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2876 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2877 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2878 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2879 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2880 | run_test "TLS 1.3: m->O: ephemeral_all/ephemeral_all, good" \ |
| 2881 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \ |
| 2882 | "$P_CLI debug_level=4 sig_algs=ecdsa_secp256r1_sha256 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 2883 | 0 \ |
| 2884 | -c "=> write client hello" \ |
| 2885 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2886 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2887 | -c "client hello, adding PSK binder list" \ |
| 2888 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2889 | -c "<= write client hello" \ |
| 2890 | -c "HTTP/1.0 200 ok" |
| 2891 | |
| 2892 | #OPENSSL-SERVER all mode |
| 2893 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2894 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2895 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2896 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2897 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2898 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2899 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2900 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2901 | run_test "TLS 1.3: m->O: all/all, good" \ |
| 2902 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203 -allow_no_dhe_kex -nocert" \ |
| 2903 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2904 | 0 \ |
| 2905 | -c "=> write client hello" \ |
| 2906 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2907 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2908 | -c "client hello, adding PSK binder list" \ |
| 2909 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2910 | -c "<= write client hello" \ |
| 2911 | -c "HTTP/1.0 200 ok" |
| 2912 | |
| 2913 | requires_openssl_tls1_3_with_compatible_ephemeral |
| 2914 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2915 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2916 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2917 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2918 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2919 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 2920 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2921 | run_test "TLS 1.3: m->O: all/ephemeral_all, good" \ |
| 2922 | "$O_NEXT_SRV -msg -debug -tls1_3 -psk_identity 0a0b0c -psk 010203" \ |
| 2923 | "$P_CLI debug_level=4 sig_algs=ecdsa_secp256r1_sha256 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 2924 | 0 \ |
| 2925 | -c "=> write client hello" \ |
| 2926 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2927 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2928 | -c "client hello, adding PSK binder list" \ |
| 2929 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2930 | -c "<= write client hello" \ |
| 2931 | -c "HTTP/1.0 200 ok" |
| 2932 | |
| 2933 | #GNUTLS-SERVER psk mode |
| 2934 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2935 | requires_gnutls_tls1_3 |
| 2936 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2937 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2938 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2939 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2940 | run_test "TLS 1.3: m->G: psk/all, good" \ |
| 2941 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \ |
| 2942 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2943 | 0 \ |
| 2944 | -c "=> write client hello" \ |
| 2945 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2946 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2947 | -c "client hello, adding PSK binder list" \ |
| 2948 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 2949 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 2950 | -c "<= write client hello" \ |
| 2951 | -c "Selected key exchange mode: psk$" \ |
| 2952 | -c "HTTP/1.0 200 OK" |
| 2953 | |
| 2954 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2955 | requires_gnutls_tls1_3 |
| 2956 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2957 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2958 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2959 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2960 | run_test "TLS 1.3: m->G: psk/ephemeral_all, fail - no common kex mode" \ |
| 2961 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \ |
| 2962 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk" \ |
| 2963 | 1 \ |
| 2964 | -c "=> write client hello" \ |
| 2965 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2966 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2967 | -c "client hello, adding PSK binder list" \ |
| 2968 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 2969 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 2970 | -c "<= write client hello" \ |
| 2971 | -c "Last error was: -0x7780 - SSL - A fatal alert message was received from our peer" |
| 2972 | |
| 2973 | #GNUTLS-SERVER psk_all mode |
| 2974 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2975 | requires_gnutls_tls1_3 |
| 2976 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2977 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2978 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 2979 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 2980 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 2981 | run_test "TLS 1.3: m->G: psk_all/all, good" \ |
| 2982 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \ |
| 2983 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 2984 | 0 \ |
| 2985 | -c "=> write client hello" \ |
| 2986 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 2987 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 2988 | -c "client hello, adding PSK binder list" \ |
| 2989 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 2990 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 2991 | -c "<= write client hello" \ |
| 2992 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 2993 | -c "HTTP/1.0 200 OK" |
| 2994 | |
| 2995 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 2996 | requires_gnutls_tls1_3 |
| 2997 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 2998 | requires_config_enabled MBEDTLS_DEBUG_C |
| 2999 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3000 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 3001 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3002 | run_test "TLS 1.3: m->G: psk_all/ephemeral_all, good" \ |
| 3003 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3004 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_all" \ |
| 3005 | 0 \ |
| 3006 | -c "=> write client hello" \ |
| 3007 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3008 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3009 | -c "client hello, adding PSK binder list" \ |
| 3010 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3011 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3012 | -c "<= write client hello" \ |
| 3013 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3014 | -c "HTTP/1.0 200 OK" |
| 3015 | |
| 3016 | #GNUTLS-SERVER psk_ephemeral mode |
| 3017 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3018 | requires_gnutls_tls1_3 |
| 3019 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3020 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3021 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3022 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3023 | run_test "TLS 1.3: m->G: psk_ephemeral/all, good" \ |
| 3024 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3025 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 3026 | 0 \ |
| 3027 | -c "=> write client hello" \ |
| 3028 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3029 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3030 | -c "client hello, adding PSK binder list" \ |
| 3031 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3032 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3033 | -c "<= write client hello" \ |
| 3034 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3035 | -c "HTTP/1.0 200 OK" |
| 3036 | |
| 3037 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3038 | requires_gnutls_tls1_3 |
| 3039 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3040 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3041 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3042 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3043 | run_test "TLS 1.3: m->G: psk_ephemeral/ephemeral_all, good" \ |
| 3044 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3045 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=psk_ephemeral" \ |
| 3046 | 0 \ |
| 3047 | -c "=> write client hello" \ |
| 3048 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3049 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3050 | -c "client hello, adding PSK binder list" \ |
| 3051 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3052 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3053 | -c "<= write client hello" \ |
| 3054 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3055 | -c "HTTP/1.0 200 OK" |
| 3056 | |
| 3057 | #GNUTLS-SERVER ephemeral mode |
| 3058 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3059 | requires_gnutls_tls1_3 |
| 3060 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3061 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3062 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3063 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 3064 | run_test "TLS 1.3: m->G: ephemeral/all, good" \ |
| 3065 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3066 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 3067 | 0 \ |
| 3068 | -c "Selected key exchange mode: ephemeral" \ |
| 3069 | -c "HTTP/1.0 200 OK" |
| 3070 | |
| 3071 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3072 | requires_gnutls_tls1_3 |
| 3073 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3074 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3075 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3076 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 3077 | run_test "TLS 1.3: m->G: ephemeral/ephemeral_all, good" \ |
| 3078 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3079 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral" \ |
| 3080 | 0 \ |
| 3081 | -c "Selected key exchange mode: ephemeral" \ |
| 3082 | -c "HTTP/1.0 200 OK" |
| 3083 | |
| 3084 | #GNUTLS-SERVER ephemeral_all mode |
| 3085 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3086 | requires_gnutls_tls1_3 |
| 3087 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3088 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3089 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3090 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 3091 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3092 | run_test "TLS 1.3: m->G: ephemeral_all/all, good" \ |
| 3093 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3094 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 3095 | 0 \ |
| 3096 | -c "=> write client hello" \ |
| 3097 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3098 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3099 | -c "client hello, adding PSK binder list" \ |
| 3100 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3101 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3102 | -c "<= write client hello" \ |
| 3103 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3104 | -c "HTTP/1.0 200 OK" |
| 3105 | |
| 3106 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3107 | requires_gnutls_tls1_3 |
| 3108 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3109 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3110 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3111 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 3112 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3113 | run_test "TLS 1.3: m->G: ephemeral_all/ephemeral_all, good" \ |
| 3114 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3115 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=ephemeral_all" \ |
| 3116 | 0 \ |
| 3117 | -c "=> write client hello" \ |
| 3118 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3119 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3120 | -c "client hello, adding PSK binder list" \ |
| 3121 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3122 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3123 | -c "<= write client hello" \ |
| 3124 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3125 | -c "HTTP/1.0 200 OK" |
| 3126 | |
| 3127 | #GNUTLS-SERVER all mode |
| 3128 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3129 | requires_gnutls_tls1_3 |
| 3130 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3131 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3132 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3133 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 3134 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 3135 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3136 | run_test "TLS 1.3: m->G: all/all, good" \ |
| 3137 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3138 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 3139 | 0 \ |
| 3140 | -c "=> write client hello" \ |
| 3141 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3142 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3143 | -c "client hello, adding PSK binder list" \ |
| 3144 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3145 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3146 | -c "<= write client hello" \ |
| 3147 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3148 | -c "HTTP/1.0 200 OK" |
| 3149 | |
| 3150 | requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 |
| 3151 | requires_gnutls_tls1_3 |
| 3152 | requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE |
| 3153 | requires_config_enabled MBEDTLS_DEBUG_C |
| 3154 | requires_config_enabled MBEDTLS_SSL_CLI_C |
| 3155 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED |
| 3156 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED |
| 3157 | requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED |
| 3158 | run_test "TLS 1.3: m->G: all/ephemeral_all, good" \ |
| 3159 | "$G_NEXT_SRV -d 4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:-KX-ALL:+ECDHE-PSK:+DHE-PSK:-PSK --pskpasswd=data_files/simplepass.psk" \ |
| 3160 | "$P_CLI debug_level=4 psk=010203 psk_identity=0a0b0c tls13_kex_modes=all" \ |
| 3161 | 0 \ |
| 3162 | -c "=> write client hello" \ |
| 3163 | -c "client hello, adding pre_shared_key extension, omitting PSK binder list" \ |
| 3164 | -c "client hello, adding psk_key_exchange_modes extension" \ |
| 3165 | -c "client hello, adding PSK binder list" \ |
| 3166 | -s "Parsing extension 'PSK Key Exchange Modes/45'" \ |
| 3167 | -s "Parsing extension 'Pre Shared Key/41'" \ |
| 3168 | -c "<= write client hello" \ |
| 3169 | -c "Selected key exchange mode: psk_ephemeral" \ |
| 3170 | -c "HTTP/1.0 200 OK" |