From: Dr. Stephen Henson Date: Wed, 27 Jan 2010 13:21:34 +0000 (+0000) Subject: eliminate some warnings in fips build X-Git-Tag: OpenSSL_0_9_8m~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b3fb2492d557bcb59c392ec791ce08887b63383b;p=oweals%2Fopenssl.git eliminate some warnings in fips build --- 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"); }