00001 00006 /* 00007 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved 00008 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 00009 * 00010 * This file is provided under the Apache License 2.0, or the 00011 * GNU General Public License v2.0 or later. 00012 * 00013 * ********** 00014 * Apache License 2.0: 00015 * 00016 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00017 * not use this file except in compliance with the License. 00018 * You may obtain a copy of the License at 00019 * 00020 * http://www.apache.org/licenses/LICENSE-2.0 00021 * 00022 * Unless required by applicable law or agreed to in writing, software 00023 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00024 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00025 * See the License for the specific language governing permissions and 00026 * limitations under the License. 00027 * 00028 * ********** 00029 * 00030 * ********** 00031 * GNU General Public License v2.0 or later: 00032 * 00033 * This program is free software; you can redistribute it and/or modify 00034 * it under the terms of the GNU General Public License as published by 00035 * the Free Software Foundation; either version 2 of the License, or 00036 * (at your option) any later version. 00037 * 00038 * This program is distributed in the hope that it will be useful, 00039 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00040 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00041 * GNU General Public License for more details. 00042 * 00043 * You should have received a copy of the GNU General Public License along 00044 * with this program; if not, write to the Free Software Foundation, Inc., 00045 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00046 * 00047 * ********** 00048 * 00049 * This file is part of mbed TLS (https://tls.mbed.org) 00050 */ 00051 /* 00052 * This set of compile-time defines and run-time variables can be used to 00053 * determine the version number of the mbed TLS library used. 00054 */ 00055 #ifndef MBEDTLS_VERSION_H 00056 #define MBEDTLS_VERSION_H 00057 00058 #if !defined(MBEDTLS_CONFIG_FILE) 00059 #include "config.h" 00060 #else 00061 #include MBEDTLS_CONFIG_FILE 00062 #endif 00063 00068 #define MBEDTLS_VERSION_MAJOR 2 00069 #define MBEDTLS_VERSION_MINOR 7 00070 #define MBEDTLS_VERSION_PATCH 16 00071 00077 #define MBEDTLS_VERSION_NUMBER 0x02071000 00078 #define MBEDTLS_VERSION_STRING "2.7.16" 00079 #define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.7.16" 00080 00081 #if defined(MBEDTLS_VERSION_C) 00082 00083 #ifdef __cplusplus 00084 extern "C" { 00085 #endif 00086 00093 unsigned int mbedtls_version_get_number( void ); 00094 00101 void mbedtls_version_get_string( char *string ); 00102 00112 void mbedtls_version_get_string_full( char *string ); 00113 00131 int mbedtls_version_check_feature( const char *feature ); 00132 00133 #ifdef __cplusplus 00134 } 00135 #endif 00136 00137 #endif /* MBEDTLS_VERSION_C */ 00138 00139 #endif /* version.h */