version.h
Go to the documentation of this file.
/*
* This set of compile-time defines and run-time variables can be used to
* determine the version number of the mbed TLS library used.
*/
#ifndef MBEDTLS_VERSION_H
#define MBEDTLS_VERSION_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#define MBEDTLS_VERSION_MAJOR 2
#define MBEDTLS_VERSION_MINOR 2
#define MBEDTLS_VERSION_PATCH 1
#define MBEDTLS_VERSION_NUMBER 0x02020100
#define MBEDTLS_VERSION_STRING "2.2.1"
#define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.2.1"
#if defined(MBEDTLS_VERSION_C)
#ifdef __cplusplus
extern "C" {
#endif
unsigned int mbedtls_version_get_number( void );
void mbedtls_version_get_string( char *string );
void mbedtls_version_get_string_full( char *string );
int mbedtls_version_check_feature( const char *feature );
#ifdef __cplusplus
}
#endif
#endif /* MBEDTLS_VERSION_C */
#endif /* version.h */
mbedtls_version_get_string_full
void mbedtls_version_get_string_full(char *string)
Get the full version string ("mbed TLS x.y.z").
mbedtls_version_get_string
void mbedtls_version_get_string(char *string)
Get the version string ("x.y.z").
config.h
Configuration options (set of defines)
mbedtls_version_get_number
unsigned int mbedtls_version_get_number(void)
Get the version number.
mbedtls_version_check_feature
int mbedtls_version_check_feature(const char *feature)
Check if support for a feature was compiled into this mbed TLS binary.