eliminate some warnings in fips build
authorDr. Stephen Henson <steve@openssl.org>
Wed, 27 Jan 2010 13:21:34 +0000 (13:21 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 27 Jan 2010 13:21:34 +0000 (13:21 +0000)
crypto/o_init.c
fips/aes/fips_aesavs.c
fips/des/fips_desmovs.c

index e4414e8d86e45c9dd4e880cb39ee0efda0ae88a2..2a5f5aac76c083ad9761b07f8c4ecb594677f97c 100644 (file)
 
 #include <e_os.h>
 #include <openssl/err.h>
+/* Internal only functions: only ever used here */
+extern void int_ERR_lib_init(void);
+extern void int_EVP_MD_init_engine_callbacks(void );
+extern void int_EVP_CIPHER_init_engine_callbacks(void );
+extern void int_RAND_init_engine_callbacks(void );
 
 /* Perform any essential OpenSSL initialization operations.
  * Currently only sets FIPS callbacks
index 9ce613b96dffd477f45894f8477775921a0f1f84..15dd4634dc779897034404d1ce1698758b1d502c 100644 (file)
@@ -767,7 +767,7 @@ int proc_file(char *rqfile, char *rspfile)
                    err =1;
                    break;
                    }
-               if (len >= sizeof(plaintext))
+               if (len >= (int)sizeof(plaintext))
                    {
                    printf("Buffer overflow\n");
                    }
index 24d30353374ced97917a6e7ab6ef28578722bd9b..f1467602a2fe9226f6088256882f046e7b0fe1ee 100644 (file)
@@ -532,7 +532,7 @@ int proc_file(char *rqfile, char *rspfile)
                    err =1;
                    break;
                    }
-               if (len >= sizeof(plaintext))
+               if (len >= (int)sizeof(plaintext))
                    {
                    printf("Buffer overflow\n");
                    }