debugging for test script
This commit is contained in:
parent
3511454bce
commit
7a3fdbc07f
11
Makefile.am
11
Makefile.am
@ -59,13 +59,8 @@ EXTRA_DIST+= IDE
|
||||
EXTRA_DIST+= README.md
|
||||
EXTRA_DIST+= LICENSING
|
||||
|
||||
#-------------------------------------#
|
||||
if BUILD_FIPS
|
||||
include cyassl/include.am
|
||||
else
|
||||
include wolfssl/include.am
|
||||
endif
|
||||
#-------------------------------------#
|
||||
include certs/include.am
|
||||
include certs/1024/include.am
|
||||
include certs/crl/include.am
|
||||
@ -77,6 +72,12 @@ include support/include.am
|
||||
include wolfcrypt/benchmark/include.am
|
||||
include wolfcrypt/src/include.am
|
||||
include wolfcrypt/test/include.am
|
||||
|
||||
if BUILD_FIPS
|
||||
include ctaocrypt/src/include.am
|
||||
include ctaocrypt/test/include.am
|
||||
endif
|
||||
|
||||
include examples/client/include.am
|
||||
include examples/server/include.am
|
||||
include examples/echoclient/include.am
|
||||
|
@ -25,9 +25,19 @@
|
||||
#define CTAO_CRYPT_MD5_H
|
||||
|
||||
#include <wolfssl/wolfcrypt/md5.h>
|
||||
#include <cyassl/ctaocrypt/types.h>
|
||||
|
||||
|
||||
//#include <cyassl/ctaocrypt/types.h>
|
||||
#ifndef HAVE_FIPS
|
||||
#define InitMd5 wc_InitMd5
|
||||
#define Md5Update wc_Md5Update
|
||||
#define Md5Final wc_Md5Final
|
||||
#define Md5Hash wc_Md5Hash
|
||||
#else
|
||||
#define wc_InitMd5 InitMd5
|
||||
#define wc_Md5Update Md5Update
|
||||
#define wc_Md5Final Md5Final
|
||||
#define wc_Md5Hash Md5Hash
|
||||
#endif
|
||||
//
|
||||
//#ifdef __cplusplus
|
||||
// extern "C" {
|
||||
|
@ -379,7 +379,7 @@ int wc_Md5Hash(const byte* data, word32 len, byte* hash)
|
||||
|
||||
wc_InitMd5(md5);
|
||||
wc_Md5Update(md5, data, len);
|
||||
Md5Final(md5, hash);
|
||||
wc_Md5Final(md5, hash);
|
||||
|
||||
#ifdef CYASSL_SMALL_STACK
|
||||
XFREE(md5, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
|
@ -26,12 +26,11 @@
|
||||
|
||||
#include <wolfssl/wolfcrypt/types.h>
|
||||
|
||||
/* for md5 reverse compatibility */
|
||||
#ifndef NO_MD5
|
||||
#define InitMd5 wc_InitMd5
|
||||
#define Md5Update wc_Md5Update
|
||||
#define Md5Final wc_Md5Final
|
||||
#define Md5Hash wc_Md5Hash
|
||||
#ifdef HAVE_FIPS
|
||||
#define wc_InitMd5 InitMd5
|
||||
#define wc_Md5Update Md5Update
|
||||
#define wc_Md5Final Md5Final
|
||||
#define wc_Md5Hash Md5Hash
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user