xref: /optee_os/lib/libmbedtls/mbedtls/library/ssl_tls13_invasive.h (revision 32b3180828fa15a49ccc86ecb4be9d274c140c89)
1*32b31808SJens Wiklander /*
2*32b31808SJens Wiklander  *  Copyright The Mbed TLS Contributors
3*32b31808SJens Wiklander  *  SPDX-License-Identifier: Apache-2.0
4*32b31808SJens Wiklander  *
5*32b31808SJens Wiklander  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
6*32b31808SJens Wiklander  *  not use this file except in compliance with the License.
7*32b31808SJens Wiklander  *  You may obtain a copy of the License at
8*32b31808SJens Wiklander  *
9*32b31808SJens Wiklander  *  http://www.apache.org/licenses/LICENSE-2.0
10*32b31808SJens Wiklander  *
11*32b31808SJens Wiklander  *  Unless required by applicable law or agreed to in writing, software
12*32b31808SJens Wiklander  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13*32b31808SJens Wiklander  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*32b31808SJens Wiklander  *  See the License for the specific language governing permissions and
15*32b31808SJens Wiklander  *  limitations under the License.
16*32b31808SJens Wiklander  */
17*32b31808SJens Wiklander 
18*32b31808SJens Wiklander #ifndef MBEDTLS_SSL_TLS13_INVASIVE_H
19*32b31808SJens Wiklander #define MBEDTLS_SSL_TLS13_INVASIVE_H
20*32b31808SJens Wiklander 
21*32b31808SJens Wiklander #include "common.h"
22*32b31808SJens Wiklander 
23*32b31808SJens Wiklander #if defined(MBEDTLS_SSL_PROTO_TLS1_3)
24*32b31808SJens Wiklander 
25*32b31808SJens Wiklander #include "psa/crypto.h"
26*32b31808SJens Wiklander 
27*32b31808SJens Wiklander #if defined(MBEDTLS_TEST_HOOKS)
28*32b31808SJens Wiklander int mbedtls_ssl_tls13_parse_certificate(mbedtls_ssl_context *ssl,
29*32b31808SJens Wiklander                                         const unsigned char *buf,
30*32b31808SJens Wiklander                                         const unsigned char *end);
31*32b31808SJens Wiklander #endif /* MBEDTLS_TEST_HOOKS */
32*32b31808SJens Wiklander 
33*32b31808SJens Wiklander #endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
34*32b31808SJens Wiklander 
35*32b31808SJens Wiklander #endif /* MBEDTLS_SSL_TLS13_INVASIVE_H */
36