summaryrefslogtreecommitdiffstats
path: root/crypto/md5/md5test.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/md5/md5test.c')
-rw-r--r--crypto/md5/md5test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/md5/md5test.c b/crypto/md5/md5test.c
index cf8cf51b6b..4e64319832 100644
--- a/crypto/md5/md5test.c
+++ b/crypto/md5/md5test.c
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
return(0);
}
#else
-#include <openssl/md5.h>
+#include <openssl/evp.h>
static char *test[]={
"",
@@ -96,13 +96,15 @@ int main(int argc, char *argv[])
int i,err=0;
unsigned char **P,**R;
char *p;
+ unsigned char md[MD5_DIGEST_LENGTH];
P=(unsigned char **)test;
R=(unsigned char **)ret;
i=1;
while (*P != NULL)
{
- p=pt(MD5(&(P[0][0]),(unsigned long)strlen((char *)*P),NULL));
+ EVP_Digest(&(P[0][0]),(unsigned long)strlen((char *)*P),md,NULL,EVP_md5());
+ p=pt(md);
if (strcmp(p,(char *)*R) != 0)
{
printf("error calculating MD5 on '%s'\n",*P);