projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix BN_rshift, which caused lots of trouble.
[oweals/openssl.git]
/
crypto
/
md5
/
md5test.c
diff --git
a/crypto/md5/md5test.c
b/crypto/md5/md5test.c
index 33b204f8e6b4a38772c3870eab2a98dbd86c87ee..6bd86563020e1b871b286355b8a6c40866b76d99 100644
(file)
--- a/
crypto/md5/md5test.c
+++ b/
crypto/md5/md5test.c
@@
-59,9
+59,17
@@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include "md5.h"
-char *test[]={
+#ifdef NO_MD5
+int main(int argc, char *argv[])
+{
+ printf("No MD5 support\n");
+ return(0);
+}
+#else
+#include <openssl/md5.h>
+
+static char *test[]={
"",
"a",
"abc",
"",
"a",
"abc",
@@
-72,7
+80,7
@@
char *test[]={
NULL,
};
NULL,
};
-char *ret[]={
+
static
char *ret[]={
"d41d8cd98f00b204e9800998ecf8427e",
"0cc175b9c0f1b6a831c399e269772661",
"900150983cd24fb0d6963f7d28e17f72",
"d41d8cd98f00b204e9800998ecf8427e",
"0cc175b9c0f1b6a831c399e269772661",
"900150983cd24fb0d6963f7d28e17f72",
@@
-82,12
+90,7
@@
char *ret[]={
"57edf4a22be3c955ac49da2e2107b67a",
};
"57edf4a22be3c955ac49da2e2107b67a",
};
-#ifndef NOPROTO
static char *pt(unsigned char *md);
static char *pt(unsigned char *md);
-#else
-static char *pt();
-#endif
-
int main(int argc, char *argv[])
{
int i,err=0;
int main(int argc, char *argv[])
{
int i,err=0;
@@
-125,3
+128,4
@@
static char *pt(unsigned char *md)
sprintf(&(buf[i*2]),"%02x",md[i]);
return(buf);
}
sprintf(&(buf[i*2]),"%02x",md[i]);
return(buf);
}
+#endif