From 6b211d8cd2f5699b0aeeff963d8a570cc45c7136 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 5 Sep 2003 12:22:21 +0000 Subject: [PATCH] Include string.h and stdlib.h where needed, to avoid warnings about strlen(), memcmp(), exit() and others to be used without a proper declaration. Update the appropriate fingerprints accordingly. --- fips/aes/fingerprint.sha1 | 2 +- fips/aes/fips_aes_selftest.c | 1 + fips/des/fingerprint.sha1 | 2 +- fips/des/fips_des_selftest.c | 1 + fips/dsa/fingerprint.sha1 | 2 +- fips/dsa/fips_dsa_gen.c | 1 + fips/rand/fingerprint.sha1 | 2 +- fips/rand/fips_rand.c | 1 + fips/sha1/fingerprint.sha1 | 2 +- fips/sha1/fips_sha1_selftest.c | 1 + fips/sha1/fips_standalone_sha1.c | 1 + fips/sha1/standalone.sha1 | 3 ++- 12 files changed, 13 insertions(+), 6 deletions(-) diff --git a/fips/aes/fingerprint.sha1 b/fips/aes/fingerprint.sha1 index 807e674403..58728b0f41 100644 --- a/fips/aes/fingerprint.sha1 +++ b/fips/aes/fingerprint.sha1 @@ -1,3 +1,3 @@ SHA1(fips_aes_core.c)= 5298df7807877eed470a1ee5f8331fc0876689da -SHA1(fips_aes_selftest.c)= fb848010c088adbbfaf719ca77c91e8ae0932ce0 +SHA1(fips_aes_selftest.c)= 56ffcd2eb43b8b19aa4e0f60d3733031b3f54e84 SHA1(fips_aes_locl.h)= a3c01d9a4f9d5211e9e785852f6f1a2febfd73b6 diff --git a/fips/aes/fips_aes_selftest.c b/fips/aes/fips_aes_selftest.c index 0fa309e0b4..13375f4b82 100644 --- a/fips/aes/fips_aes_selftest.c +++ b/fips/aes/fips_aes_selftest.c @@ -47,6 +47,7 @@ * */ +#include #include #include #include diff --git a/fips/des/fingerprint.sha1 b/fips/des/fingerprint.sha1 index 4d944e0104..ef736b971c 100644 --- a/fips/des/fingerprint.sha1 +++ b/fips/des/fingerprint.sha1 @@ -1,3 +1,3 @@ SHA1(fips_des_enc.c)= a4b88bb16782604a298d74de04a8b3bc3a204c5a -SHA1(fips_des_selftest.c)= 5638ae4d50be6110d9efbaa5e7e19c7e04c9940d +SHA1(fips_des_selftest.c)= 7f958a8b8fdb1227ec189e5948d7bfa87876fb3b SHA1(fips_des_locl.h)= 5e5128f074485e72d6fdee00d22d46a694bd5abe diff --git a/fips/des/fips_des_selftest.c b/fips/des/fips_des_selftest.c index 64890e2274..0285b00121 100644 --- a/fips/des/fips_des_selftest.c +++ b/fips/des/fips_des_selftest.c @@ -47,6 +47,7 @@ * */ +#include #include #include #include diff --git a/fips/dsa/fingerprint.sha1 b/fips/dsa/fingerprint.sha1 index 9bc57da539..38f35e55f1 100644 --- a/fips/dsa/fingerprint.sha1 +++ b/fips/dsa/fingerprint.sha1 @@ -1,2 +1,2 @@ SHA1(fips_dsa_ossl.c)= eb769361b524507754bcbfbda92b973e37433478 -SHA1(fips_dsa_gen.c)= 07c884d8f11b41ae7f4bce4803ae918e25f05680 +SHA1(fips_dsa_gen.c)= 2566eacc23742549865207573793f0e70e6ceb0d diff --git a/fips/dsa/fips_dsa_gen.c b/fips/dsa/fips_dsa_gen.c index 69501803a9..f85ca3e939 100644 --- a/fips/dsa/fips_dsa_gen.c +++ b/fips/dsa/fips_dsa_gen.c @@ -72,6 +72,7 @@ #ifndef OPENSSL_NO_SHA #include +#include #include //#include "cryptlib.h" #include diff --git a/fips/rand/fingerprint.sha1 b/fips/rand/fingerprint.sha1 index 9d9549bec4..3192109c61 100644 --- a/fips/rand/fingerprint.sha1 +++ b/fips/rand/fingerprint.sha1 @@ -1,2 +1,2 @@ -SHA1(fips_rand.c)= c071f4d7b5221f0f804b9deef5c958fc64176959 +SHA1(fips_rand.c)= 14f651281d84cdca50e4d155557b68c9d1b5cbb4 SHA1(fips_rand.h)= da5ee76588070c97d47c939d069d250a1476a080 diff --git a/fips/rand/fips_rand.c b/fips/rand/fips_rand.c index 9bea881431..f88bb605a9 100644 --- a/fips/rand/fips_rand.c +++ b/fips/rand/fips_rand.c @@ -59,6 +59,7 @@ #include #include #include +#include #define SEED_SIZE 8 diff --git a/fips/sha1/fingerprint.sha1 b/fips/sha1/fingerprint.sha1 index ec4a620698..67d774ef16 100644 --- a/fips/sha1/fingerprint.sha1 +++ b/fips/sha1/fingerprint.sha1 @@ -1,4 +1,4 @@ SHA1(fips_sha1dgst.c)= 609e2cbf5d3cdcf318ec10238a0e82b93b78e6b5 -SHA1(fips_sha1_selftest.c)= d1becdceec9f08d2cd9ab22238a3f5941a98dd01 +SHA1(fips_sha1_selftest.c)= db50d6b2e33c87a4d9de0aab52bf1b0ad81ae2d6 SHA1(fips_sha_locl.h)= 677427c495b571991f013939ea7e5dea87828f8c SHA1(fips_md32_common.h)= 4f41bcde24750b3b8c99a06bcba2fe06ff8db4d0 diff --git a/fips/sha1/fips_sha1_selftest.c b/fips/sha1/fips_sha1_selftest.c index ba5130f51f..730f57553e 100644 --- a/fips/sha1/fips_sha1_selftest.c +++ b/fips/sha1/fips_sha1_selftest.c @@ -47,6 +47,7 @@ * */ +#include #include #include #include diff --git a/fips/sha1/fips_standalone_sha1.c b/fips/sha1/fips_standalone_sha1.c index b74cdc44f8..cdf54e5a36 100644 --- a/fips/sha1/fips_standalone_sha1.c +++ b/fips/sha1/fips_standalone_sha1.c @@ -49,6 +49,7 @@ #include #include +#include int main(int argc,char **argv) { diff --git a/fips/sha1/standalone.sha1 b/fips/sha1/standalone.sha1 index 5c60da0ae9..b94676c11e 100644 --- a/fips/sha1/standalone.sha1 +++ b/fips/sha1/standalone.sha1 @@ -1,4 +1,5 @@ -SHA1(fips_standalone_sha1.c)= 74df91daa6670c9989b9395492a4b2627d115574 SHA1(fips_sha1dgst.c)= 609e2cbf5d3cdcf318ec10238a0e82b93b78e6b5 +SHA1(fips_sha1_selftest.c)= db50d6b2e33c87a4d9de0aab52bf1b0ad81ae2d6 +SHA1(fips_standalone_sha1.c)= bab1d8e16317a02247067f2a47722a721a4a103e SHA1(fips_sha_locl.h)= 677427c495b571991f013939ea7e5dea87828f8c SHA1(fips_md32_common.h)= 4f41bcde24750b3b8c99a06bcba2fe06ff8db4d0 -- 2.25.1