blob: 67d62eee7ee6db01290966956e28ada78eada309 [file] [log] [blame]
Jerry Yucb036772022-04-15 14:36:19 +08001#!/bin/sh
2
3# tls13-generic.sh
4#
5# Copyright The Mbed TLS Contributors
6# SPDX-License-Identifier: Apache-2.0
7#
8# Licensed under the Apache License, Version 2.0 (the "License"); you may
9# not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19#
20
21requires_config_enabled MBEDTLS_DEBUG_C
22requires_config_enabled MBEDTLS_SSL_CLI_C
23requires_config_enabled MBEDTLS_SSL_SRV_C
24requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
Jerry Yu23f7a6f2022-04-23 15:16:45 +080025run_test "TLS 1.3: server: HRR check - mbedtls" \
Jerry Yucb036772022-04-15 14:36:19 +080026 "$P_SRV debug_level=4 force_version=tls13 curves=secp384r1" \
27 "$P_CLI debug_level=4 force_version=tls13 curves=secp256r1,secp384r1" \
28 1 \
29 -s "tls13 server state: MBEDTLS_SSL_CLIENT_HELLO" \
30 -s "tls13 server state: MBEDTLS_SSL_SERVER_HELLO" \
31 -s "tls13 server state: MBEDTLS_SSL_ENCRYPTED_EXTENSIONS" \
32 -s "tls13 server state: MBEDTLS_SSL_HELLO_RETRY_REQUEST" \
33 -c "client state: MBEDTLS_SSL_ENCRYPTED_EXTENSIONS" \
34 -s "selected_group: secp384r1" \
35 -s "SSL - The requested feature is not available" \
36 -s "=> write hello retry request" \
37 -s "<= write hello retry request"