#endif
#ifndef NO_MD5
#include <openssl/md5.h>
+#endif
+#ifndef NO_HMAC
#include <openssl/hmac.h>
-#include <openssl/evp.h>
#endif
+#include <openssl/evp.h>
#ifndef NO_SHA
#include <openssl/sha.h>
#endif
int MAIN(int argc, char **argv)
{
unsigned char *buf=NULL,*buf2=NULL;
- des_cblock *buf_as_des_cblock = NULL;
int ret=1;
#define ALGOR_NUM 14
#define SIZE_NUM 5
0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12};
unsigned char iv[8];
#ifndef NO_DES
+ des_cblock *buf_as_des_cblock = NULL;
static des_cblock key ={0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0};
static des_cblock key2={0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12};
static des_cblock key3={0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12,0x34};
BIO_printf(bio_err,"out of memory\n");
goto end;
}
+#ifndef NO_DES
buf_as_des_cblock = (des_cblock *)buf;
+#endif
if ((buf2=(unsigned char *)Malloc((int)BUFSIZE)) == NULL)
{
BIO_printf(bio_err,"out of memory\n");
}
#endif
-#ifndef NO_MD5
+#if !defined(NO_MD5) && !defined(NO_HMAC)
if (doit[D_HMAC])
{
HMAC_CTX hctx;