1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

The Great Renaming

A simple execution of tmp/invoke-rename.pl
This commit is contained in:
Manuel Pégourié-Gonnard
2015-04-08 12:49:31 +02:00
parent b5904d25ef
commit 2cf5a7c98e
291 changed files with 36012 additions and 36012 deletions

View File

@ -1,15 +1,15 @@
#if defined(POLARSSL_PLATFORM_C)
#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf
#define polarssl_fprintf fprintf
#define polarssl_malloc malloc
#define polarssl_free free
#define polarssl_exit exit
#define polarssl_fprintf fprintf
#define polarssl_printf printf
#define polarssl_snprintf snprintf
#define mbedtls_printf printf
#define mbedtls_fprintf fprintf
#define mbedtls_malloc malloc
#define mbedtls_free free
#define mbedtls_exit exit
#define mbedtls_fprintf fprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
#ifdef _MSC_VER
@ -25,9 +25,9 @@ typedef UINT32 uint32_t;
#define assert(a) if( !( a ) ) \
{ \
polarssl_fprintf( stderr, "Assertion Failed at %s:%d - %s\n", \
mbedtls_fprintf( stderr, "Assertion Failed at %s:%d - %s\n", \
__FILE__, __LINE__, #a ); \
polarssl_exit( 1 ); \
mbedtls_exit( 1 ); \
}
/*
@ -123,7 +123,7 @@ static unsigned char *zero_alloc( size_t len )
void *p;
size_t actual_len = ( len != 0 ) ? len : 1;
p = polarssl_malloc( actual_len );
p = mbedtls_malloc( actual_len );
assert( p != NULL );
memset( p, 0x00, actual_len );
@ -150,7 +150,7 @@ static unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
if( *olen == 0 )
return( zero_alloc( *olen ) );
obuf = polarssl_malloc( *olen );
obuf = mbedtls_malloc( *olen );
assert( obuf != NULL );
(void) unhexify( obuf, ibuf );