mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-08-09 13:41:05 +00:00
38 lines
765 B
C
38 lines
765 B
C
/*
|
|
* Version information
|
|
*
|
|
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
|
|
*
|
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
|
*/
|
|
|
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
|
#include "mbedtls/config.h"
|
|
#else
|
|
#include MBEDTLS_CONFIG_FILE
|
|
#endif
|
|
|
|
#if defined(MBEDTLS_VERSION_C)
|
|
|
|
#include "mbedtls/version.h"
|
|
#include <string.h>
|
|
|
|
unsigned int mbedtls_version_get_number()
|
|
{
|
|
return( MBEDTLS_VERSION_NUMBER );
|
|
}
|
|
|
|
void mbedtls_version_get_string( char *string )
|
|
{
|
|
memcpy( string, MBEDTLS_VERSION_STRING,
|
|
sizeof( MBEDTLS_VERSION_STRING ) );
|
|
}
|
|
|
|
void mbedtls_version_get_string_full( char *string )
|
|
{
|
|
memcpy( string, MBEDTLS_VERSION_STRING_FULL,
|
|
sizeof( MBEDTLS_VERSION_STRING_FULL ) );
|
|
}
|
|
|
|
#endif /* MBEDTLS_VERSION_C */
|