Fix typos and add missing lines in Makefile. FIPS_TEST_9
authorAndy Polyakov <appro@openssl.org>
Tue, 7 Jun 2005 14:08:54 +0000 (14:08 +0000)
committerAndy Polyakov <appro@openssl.org>
Tue, 7 Jun 2005 14:08:54 +0000 (14:08 +0000)
Makefile.org
crypto/dso/dso_dl.c
fips/fips_err.h
fips/fipshashes.c
fips/rsa/Makefile

index 676e0aa23bd23a3b8df2e9db5bead1af70ce3027..98cb2e98bde9707dfe9804bfd9b0c5e74768a64d 100644 (file)
@@ -258,6 +258,9 @@ sub_target:
 libcrypto$(SHLIB_EXT): libcrypto.a
        @if [ "$(SHLIB_TARGET)" != "" ]; then \
                $(MAKE) SHLIBDIRS=crypto build-shared; \
+               if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
+                    fips/sha/fips_standalone_sha1 -binary $@ > $@.$${HMAC_EXT:-sha1}; \
+               fi; \
        else \
                echo "There's no support for shared libraries on this platform" >&2; \
        fi
index 15862cb0f7754ac2e0dfc0746c85a39094a8e193..82daa0b85e4222ea5341720828db65b37edd518e 100644 (file)
@@ -289,7 +289,7 @@ int DSO_pathbyaddr(void *addr,char *path,int sz)
        struct shl_descriptor inf;
        int i,len;
 
-       if (addr == NULL) addr = dl_ref_porint;
+       if (addr == NULL) addr = dl_ref_point;
 
        for (i=-1;shl_get_r(i,&inf)==0;i++)
                {
index c40cc5fbebcebaa605b395f6472f0972699d1dfb..d6cfb8321f9c22a3c185c7bf519243fa56337287 100644 (file)
@@ -90,7 +90,7 @@ static ERR_STRING_DATA FIPS_str_functs[]=
 {ERR_FUNC(FIPS_F_RSA_GENERATE_KEY),    "RSA_generate_key"},
 {ERR_FUNC(FIPS_F_RSA_X931_GENERATE_KEY),       "RSA_X931_generate_key"},
 {ERR_FUNC(FIPS_F_SSLEAY_RAND_BYTES),   "SSLEAY_RAND_BYTES"},
-{ERR_FINC(FIPS_F_FIPS_CHECK_DSO),      "FIPS_check_dso"},
+{ERR_FUNC(FIPS_F_FIPS_CHECK_DSO),      "FIPS_check_dso"},
 {0,NULL}
        };
 
index e0dcdca2e1378f8bef6adb910e7e065c68036c02..079100858ab973aa1c116ea8529b8f537f74deb6 100644 (file)
@@ -2,7 +2,7 @@ const char * const FIPS_source_hashes[] = {
 "HMAC-SHA1(fips.c)= c5116c8f381d5981d840d240f66c8303b866f5f6",
 "HMAC-SHA1(fips_err_wrapper.c)= d3e2be316062510312269e98f964cb87e7577898",
 "HMAC-SHA1(fips.h)= 23151c26e0c735c09b0f229a16a31235150b4ca4",
-"HMAC-SHA1(fips_err.h)= b9cd3383335a4db7663dd3b7a4851e2d60998597",
+"HMAC-SHA1(fips_err.h)= 11cc657a0c7989efdeb28dd7c6b3941b1ad08c39",
 "HMAC-SHA1(aes/fips_aes_core.c)= b70bbbd675efe0613da0d57055310926a0104d55",
 "HMAC-SHA1(aes/asm/fips-ax86-elf.s)= f797b524a79196e7f59458a5b223432fcfd4a868",
 "HMAC-SHA1(aes/fips_aes_selftest.c)= 98b01502221e7fe529fd981222f2cbb52eb4cbe0",
index ab236df8de694aae4d14e64ac511c3ac8bc71077..c8ff0bc92be386bb119a5bef081f584f82337285 100644 (file)
@@ -64,10 +64,12 @@ tests:
 
 Q=../testvectors/rsa/req
 A=../testvectors/rsa/rsp
+Q62=../testvectors/rsa_salt_62/req
+A62=../testvectors/rsa_salt_62/rsp
 
 fips_test:
-       -rm -rf $(A)
-       mkdir $(A)
+       -rm -rf $(A) $(A62)
+       mkdir $(A) $(A62)
        if [ -f $(Q)/SigGen15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest < $(Q)/SigGen15.req  > $(A)/SigGen15.rsp; fi
        if [ -f $(Q)/SigVer15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest < $(Q)/SigVer15.req > $(A)/SigVer15.rsp; fi
        if [ -f $(Q)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 0 < $(Q)/SigGenPSS.req > $(A)/SigGenPSS.rsp; fi