Added submodule contents into tree
This commit is contained in:
parent
01a752555c
commit
9b991208cd
4934 changed files with 1657477 additions and 5 deletions
32
externals/mbedtls/library/version.c
vendored
Normal file
32
externals/mbedtls/library/version.c
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Version information
|
||||
*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#if defined(MBEDTLS_VERSION_C)
|
||||
|
||||
#include "mbedtls/version.h"
|
||||
#include <string.h>
|
||||
|
||||
unsigned int mbedtls_version_get_number(void)
|
||||
{
|
||||
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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue