Mbed TLS v2.28.5
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1
6/*
7 * Copyright The Mbed TLS Contributors
8 * SPDX-License-Identifier: Apache-2.0
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
11 * not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22/*
23 * This set of compile-time defines and run-time variables can be used to
24 * determine the version number of the Mbed TLS library used.
25 */
26#ifndef MBEDTLS_VERSION_H
27#define MBEDTLS_VERSION_H
28
29#if !defined(MBEDTLS_CONFIG_FILE)
30#include "mbedtls/config.h"
31#else
32#include MBEDTLS_CONFIG_FILE
33#endif
34
39#define MBEDTLS_VERSION_MAJOR 2
40#define MBEDTLS_VERSION_MINOR 28
41#define MBEDTLS_VERSION_PATCH 5
42
48#define MBEDTLS_VERSION_NUMBER 0x021C0500
49#define MBEDTLS_VERSION_STRING "2.28.5"
50#define MBEDTLS_VERSION_STRING_FULL "Mbed TLS 2.28.5"
51
52#if defined(MBEDTLS_VERSION_C)
53
54#ifdef __cplusplus
55extern "C" {
56#endif
57
64unsigned int mbedtls_version_get_number(void);
65
72void mbedtls_version_get_string(char *string);
73
84
102int mbedtls_version_check_feature(const char *feature);
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* MBEDTLS_VERSION_C */
109
110#endif /* version.h */
Configuration options (set of defines)
unsigned int mbedtls_version_get_number(void)
void mbedtls_version_get_string_full(char *string)
void mbedtls_version_get_string(char *string)
int mbedtls_version_check_feature(const char *feature)
Check if support for a feature was compiled into this Mbed TLS binary. This allows you to see at runt...