mbed TLS v2.14.1
platform_util.h
Go to the documentation of this file.
1 
7 /*
8  * Copyright (C) 2018, Arm Limited, All Rights Reserved
9  * SPDX-License-Identifier: Apache-2.0
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License"); you may
12  * not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
19  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * This file is part of Mbed TLS (https://tls.mbed.org)
24  */
25 #ifndef MBEDTLS_PLATFORM_UTIL_H
26 #define MBEDTLS_PLATFORM_UTIL_H
27 
28 #if !defined(MBEDTLS_CONFIG_FILE)
29 #include "mbedtls/config.h"
30 #else
31 #include MBEDTLS_CONFIG_FILE
32 #endif
33 
34 #include <stddef.h>
35 #if defined(MBEDTLS_HAVE_TIME_DATE)
36 #include "mbedtls/platform_time.h"
37 #include <time.h>
38 #endif /* MBEDTLS_HAVE_TIME_DATE */
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
66 void mbedtls_platform_zeroize( void *buf, size_t len );
67 
68 #if defined(MBEDTLS_HAVE_TIME_DATE)
69 
95 struct tm *mbedtls_platform_gmtime_r( const mbedtls_time_t *tt,
96  struct tm *tm_buf );
97 #endif /* MBEDTLS_HAVE_TIME_DATE */
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif /* MBEDTLS_PLATFORM_UTIL_H */