mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
The Great Renaming
A simple execution of tmp/invoke-rename.pl
This commit is contained in:
@ -20,32 +20,32 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#if !defined(POLARSSL_CONFIG_FILE)
|
||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||
#include "mbedtls/config.h"
|
||||
#else
|
||||
#include POLARSSL_CONFIG_FILE
|
||||
#include MBEDTLS_CONFIG_FILE
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_VERSION_C)
|
||||
#if defined(MBEDTLS_VERSION_C)
|
||||
|
||||
#include "mbedtls/version.h"
|
||||
#include <string.h>
|
||||
|
||||
unsigned int version_get_number()
|
||||
unsigned int mbedtls_version_get_number()
|
||||
{
|
||||
return( POLARSSL_VERSION_NUMBER );
|
||||
return( MBEDTLS_VERSION_NUMBER );
|
||||
}
|
||||
|
||||
void version_get_string( char *string )
|
||||
void mbedtls_version_get_string( char *string )
|
||||
{
|
||||
memcpy( string, POLARSSL_VERSION_STRING,
|
||||
sizeof( POLARSSL_VERSION_STRING ) );
|
||||
memcpy( string, MBEDTLS_VERSION_STRING,
|
||||
sizeof( MBEDTLS_VERSION_STRING ) );
|
||||
}
|
||||
|
||||
void version_get_string_full( char *string )
|
||||
void mbedtls_version_get_string_full( char *string )
|
||||
{
|
||||
memcpy( string, POLARSSL_VERSION_STRING_FULL,
|
||||
sizeof( POLARSSL_VERSION_STRING_FULL ) );
|
||||
memcpy( string, MBEDTLS_VERSION_STRING_FULL,
|
||||
sizeof( MBEDTLS_VERSION_STRING_FULL ) );
|
||||
}
|
||||
|
||||
#endif /* POLARSSL_VERSION_C */
|
||||
#endif /* MBEDTLS_VERSION_C */
|
||||
|
Reference in New Issue
Block a user