From b3fb2492d557bcb59c392ec791ce08887b63383b Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 27 Jan 2010 13:21:34 +0000 Subject: [PATCH] eliminate some warnings in fips build --- crypto/o_init.c | 5 +++++ fips/aes/fips_aesavs.c | 2 +- fips/des/fips_desmovs.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crypto/o_init.c b/crypto/o_init.c index e4414e8d86..2a5f5aac76 100644 --- a/crypto/o_init.c +++ b/crypto/o_init.c @@ -58,6 +58,11 @@ #include #include +/* 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 diff --git a/fips/aes/fips_aesavs.c b/fips/aes/fips_aesavs.c index 9ce613b96d..15dd4634dc 100644 --- a/fips/aes/fips_aesavs.c +++ b/fips/aes/fips_aesavs.c @@ -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"); } diff --git a/fips/des/fips_desmovs.c b/fips/des/fips_desmovs.c index 24d3035337..f1467602a2 100644 --- a/fips/des/fips_desmovs.c +++ b/fips/des/fips_desmovs.c @@ -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"); } -- 2.34.1