Include openssl/crypto.h first in several other files so FIPS renaming
[openssl.git] / crypto / rc4 / rc4test.c
index d74484b4c469bc93c47160a440d6e89cd3ce41af..a5e30ed96c6d43c9d493474338cb1aebac8cb967 100644 (file)
@@ -59,6 +59,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <openssl/crypto.h>
 
 #include "../e_os.h"
 
@@ -118,9 +119,7 @@ int main(int argc, char *argv[])
        int j;
        unsigned char *p;
        RC4_KEY key;
-       unsigned char buf[512],obuf[512];
-
-       for (i=0; i<512; i++) buf[i]=0x01;
+       unsigned char obuf[512];
 
        for (i=0; i<6; i++)
                {
@@ -218,11 +217,11 @@ int main(int argc, char *argv[])
                if (memcmp(md,expected,sizeof(md))) {
                        printf("error in RC4 bulk test\n");
                        printf("output:");
-                       for (j=0; j<sizeof(md); j++)
+                       for (j=0; j<(int)sizeof(md); j++)
                                printf(" %02x",md[j]);
                        printf("\n");
                        printf("expect:");
-                       for (j=0; j<sizeof(md); j++)
+                       for (j=0; j<(int)sizeof(md); j++)
                                printf(" %02x",expected[j]);
                        printf("\n");
                        err++;