Remove Win32 assembler files. They are always rebuilt (with some
[openssl.git] / crypto / ripemd / rmdtest.c
index 8a19f29999250dcc1a062adc57f2ea8f25c1ebec..5d79c997253baf1c19672e8801b65190daf70d08 100644 (file)
@@ -69,7 +69,11 @@ int main(int argc, char *argv[])
 #else
 #include <openssl/ripemd.h>
 
-char *test[]={
+#ifdef CHARSET_EBCDIC
+#include <openssl/ebcdic.h>
+#endif
+
+static char *test[]={
        "",
        "a",
        "abc",
@@ -81,7 +85,7 @@ char *test[]={
        NULL,
        };
 
-char *ret[]={
+static char *ret[]={
        "9c1185a5c5e9fc54612808977ee8f548b2258d31",
        "0bdc9d2d256b3ee9daae347be6f4dc835a467ffe",
        "8eb208f7e05d987a9b044a8e98c6b087f15a0bfc",
@@ -104,6 +108,9 @@ int main(int argc, char *argv[])
        i=1;
        while (*P != NULL)
                {
+#ifdef CHARSET_EBCDIC
+               ebcdic2ascii((char *)*P, (char *)*P, strlen((char *)*P));
+#endif
                p=pt(RIPEMD160(&(P[0][0]),(unsigned long)strlen((char *)*P),NULL));
                if (strcmp(p,(char *)*R) != 0)
                        {