2021-08-06 10:29:08 +02:00
|
|
|
/*
|
2021-08-06 11:11:51 +02:00
|
|
|
* TLS 1.3 server-side functions
|
2021-08-06 10:29:08 +02:00
|
|
|
*
|
|
|
|
* Copyright The Mbed TLS Contributors
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
* not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2022-01-27 08:03:26 +01:00
|
|
|
#if defined(MBEDTLS_SSL_SRV_C) && defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
2021-08-06 10:29:08 +02:00
|
|
|
|
2021-09-14 10:03:56 +02:00
|
|
|
#include "mbedtls/debug.h"
|
|
|
|
|
2021-08-06 10:29:08 +02:00
|
|
|
#include "ssl_misc.h"
|
2021-12-15 12:56:54 +01:00
|
|
|
#include "ssl_debug_helpers.h"
|
2021-08-06 10:29:08 +02:00
|
|
|
|
2021-08-27 11:07:38 +02:00
|
|
|
int mbedtls_ssl_tls13_handshake_server_step( mbedtls_ssl_context *ssl )
|
2021-08-06 11:11:51 +02:00
|
|
|
{
|
2021-09-27 08:38:20 +02:00
|
|
|
((void) ssl);
|
2021-09-28 11:53:35 +02:00
|
|
|
MBEDTLS_SSL_DEBUG_MSG( 2, ( "tls13 server state: %s(%d)",
|
|
|
|
mbedtls_ssl_states_str( ssl->state ),
|
|
|
|
ssl->state ) );
|
2021-09-27 05:16:17 +02:00
|
|
|
|
2021-08-06 11:11:51 +02:00
|
|
|
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
|
|
|
}
|
2021-08-06 10:29:08 +02:00
|
|
|
|
2022-01-27 08:03:26 +01:00
|
|
|
#endif /* MBEDTLS_SSL_SRV_C && MBEDTLS_SSL_PROTO_TLS1_3 */
|