25 #include <my_global.h>
28 #if defined(HAVE_YASSL)
29 #include "my_config.h"
32 static void my_md5_hash(
char *digest,
const char *
buf,
int len)
35 hasher.Update((TaoCrypt::byte *) buf, len);
36 hasher.Final((TaoCrypt::byte *) digest);
39 #elif defined(HAVE_OPENSSL)
40 #include <openssl/md5.h>
42 static void my_md5_hash(
unsigned char* digest,
unsigned const char *buf,
int len)
46 MD5_Update (&ctx, buf, len);
47 MD5_Final (digest, &ctx);
63 #if defined(HAVE_YASSL)
64 my_md5_hash(digest, buf, len);
65 #elif defined(HAVE_OPENSSL)
66 my_md5_hash((
unsigned char*)digest, (
unsigned const char*)buf, len);