00001 00006 /* 00007 * Copyright The Mbed TLS Contributors 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 /* 00050 * This set of compile-time defines and run-time variables can be used to 00051 * determine the version number of the mbed TLS library used. 00052 */ 00053 #ifndef MBEDTLS_VERSION_H 00054 #define MBEDTLS_VERSION_H 00055 00056 #if !defined(MBEDTLS_CONFIG_FILE) 00057 #include "config.h" 00058 #else 00059 #include MBEDTLS_CONFIG_FILE 00060 #endif 00061 00066 #define MBEDTLS_VERSION_MAJOR 2 00067 #define MBEDTLS_VERSION_MINOR 7 00068 #define MBEDTLS_VERSION_PATCH 17 00069 00075 #define MBEDTLS_VERSION_NUMBER 0x02071100 00076 #define MBEDTLS_VERSION_STRING "2.7.17" 00077 #define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.7.17" 00078 00079 #if defined(MBEDTLS_VERSION_C) 00080 00081 #ifdef __cplusplus 00082 extern "C" { 00083 #endif 00084 00091 unsigned int mbedtls_version_get_number( void ); 00092 00099 void mbedtls_version_get_string( char *string ); 00100 00110 void mbedtls_version_get_string_full( char *string ); 00111 00129 int mbedtls_version_check_feature( const char *feature ); 00130 00131 #ifdef __cplusplus 00132 } 00133 #endif 00134 00135 #endif /* MBEDTLS_VERSION_C */ 00136 00137 #endif /* version.h */