]> git.sur5r.net Git - freertos/blob - FreeRTOS-Labs/Source/mbedtls/library/version.c
Add the Labs projects provided in the V10.2.1_191129 zip file.
[freertos] / FreeRTOS-Labs / Source / mbedtls / library / version.c
1 /*\r
2  *  Version information\r
3  *\r
4  *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved\r
5  *  SPDX-License-Identifier: Apache-2.0\r
6  *\r
7  *  Licensed under the Apache License, Version 2.0 (the "License"); you may\r
8  *  not use this file except in compliance with the License.\r
9  *  You may obtain a copy of the License at\r
10  *\r
11  *  http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  *  Unless required by applicable law or agreed to in writing, software\r
14  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\r
15  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  *  See the License for the specific language governing permissions and\r
17  *  limitations under the License.\r
18  *\r
19  *  This file is part of mbed TLS (https://tls.mbed.org)\r
20  */\r
21 \r
22 #if !defined(MBEDTLS_CONFIG_FILE)\r
23 #include "mbedtls/config.h"\r
24 #else\r
25 #include MBEDTLS_CONFIG_FILE\r
26 #endif\r
27 \r
28 #if defined(MBEDTLS_VERSION_C)\r
29 \r
30 #include "mbedtls/version.h"\r
31 #include <string.h>\r
32 \r
33 unsigned int mbedtls_version_get_number( void )\r
34 {\r
35     return( MBEDTLS_VERSION_NUMBER );\r
36 }\r
37 \r
38 void mbedtls_version_get_string( char *string )\r
39 {\r
40     memcpy( string, MBEDTLS_VERSION_STRING,\r
41             sizeof( MBEDTLS_VERSION_STRING ) );\r
42 }\r
43 \r
44 void mbedtls_version_get_string_full( char *string )\r
45 {\r
46     memcpy( string, MBEDTLS_VERSION_STRING_FULL,\r
47             sizeof( MBEDTLS_VERSION_STRING_FULL ) );\r
48 }\r
49 \r
50 #endif /* MBEDTLS_VERSION_C */\r