projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
For a long time, I've wanted to be able to easily run one or a few
[oweals/openssl.git]
/
crypto
/
md2
/
md2test.c
diff --git
a/crypto/md2/md2test.c
b/crypto/md2/md2test.c
index 2368ec3332a268782800a645f4f1cd70aef10291..e3f4fb4c341af264b2d2de675822d63860d266a6 100644
(file)
--- a/
crypto/md2/md2test.c
+++ b/
crypto/md2/md2test.c
@@
-59,9
+59,21
@@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#ifdef NO_MD2
+int main(int argc, char *argv[])
+{
+ printf("No MD2 support\n");
+ return(0);
+}
+#else
#include <openssl/md2.h>
#include <openssl/md2.h>
-char *test[]={
+#ifdef CHARSET_EBCDIC
+#include <openssl/ebcdic.h>
+#endif
+
+static char *test[]={
"",
"a",
"abc",
"",
"a",
"abc",
@@
-72,7
+84,7
@@
char *test[]={
NULL,
};
NULL,
};
-char *ret[]={
+
static
char *ret[]={
"8350e5a3e24c153df2275c9f80692773",
"32ec01ec4a6dac72c0ab96fb34c0b5d1",
"da853b0d3f88d99b30283a69e6ded6bb",
"8350e5a3e24c153df2275c9f80692773",
"32ec01ec4a6dac72c0ab96fb34c0b5d1",
"da853b0d3f88d99b30283a69e6ded6bb",
@@
-120,3
+132,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