Updates to WIN32 build system to make FIPS build work again.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 11 Jul 2007 11:53:20 +0000 (11:53 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 11 Jul 2007 11:53:20 +0000 (11:53 +0000)
crypto/aes/aes_core.c
crypto/des/set_key.c
fips-1.0/aes/Makefile
fips-1.0/des/Makefile
fips-1.0/sha/Makefile
util/mk1mf.pl

index b6f8a7dd97e9d6fc2471f191f066d4d0db5e459d..f9f7cf9f438c44182a61676b33cb42d4342680c9 100644 (file)
@@ -37,6 +37,7 @@
 
 #include <stdlib.h>
 #include <openssl/aes.h>
+#include <openssl/fips.h>
 #include "aes_locl.h"
 
 /*
index 46bb4cc945a29860ea779c07aa9ac7c51bcde77e..7b9dda657c529d2cf46cc0259aef31885b8d15c8 100644 (file)
@@ -63,6 +63,7 @@
  * 1.1 added norm_expand_bits
  * 1.0 First working version
  */
+#include <openssl/fips.h>
 #include "des_locl.h"
 
 OPENSSL_IMPLEMENT_GLOBAL(int,DES_check_key);   /* defaults to false */
index d92cfea7ac5d2e24828489b557bd929cac4fee14..42782325cd58b1581afdafff90bf10888f64eb5e 100644 (file)
@@ -32,7 +32,7 @@ LIBOBJ=fips_aes_selftest.o
 SRC= $(LIBSRC)
 
 EXHEADER=
-HEADER=        $(EXHEADER) fips_aes_locl.h
+HEADER=
 
 ALL=    $(GENERAL) $(SRC) $(HEADER)
 
index 7a9bda25b4be3c81de2c3280794ddc05156bc097..3adfd7389f3ba235e869ee760f7659e8857abf30 100644 (file)
@@ -31,7 +31,7 @@ LIBOBJ=fips_des_selftest.o
 SRC= $(LIBSRC)
 
 EXHEADER=
-HEADER=        $(EXHEADER) fips_des_locl.h
+HEADER=
 
 ALL=    $(GENERAL) $(SRC) $(HEADER)
 
index 6bad8e243dfbc3b6e1e07ccfd1a1158fc838291d..83daa4ebfc701208ab36932ce8182abfbf5e14ad 100644 (file)
@@ -33,8 +33,8 @@ LIBOBJ=fips_sha1_selftest.o
 
 SRC= $(LIBSRC) fips_standalone_sha1.c
 
-EXHEADER=fips_sha.h
-HEADER=        $(EXHEADER) fips_sha_locl.h fips_md32_common.h
+EXHEADER=
+HEADER=        
 
 ALL=    $(GENERAL) $(SRC) $(HEADER)
 
index 9216e11e4931475dc9379919d5338747a584a9fb..99b6d321f0295456dfcc538a87a199262dcb7907 100755 (executable)
@@ -763,9 +763,6 @@ if ($fips)
        $rules.=&cc_compile_target("\$(OBJ_D)${o}fips_standalone_sha1$obj",
                "fips-1.0${o}sha${o}fips_standalone_sha1.c",
                "\$(SHLIB_CFLAGS)");
-       $rules.=&cc_compile_target("\$(OBJ_D)${o}fips_sha1dgst$obj",
-               "fips-1.0${o}sha${o}fips_sha1dgst.c",
-               "\$(SHLIB_CFLAGS)") unless $fipscanisterbuild;
        $rules.=&cc_compile_target("\$(OBJ_D)${o}\$(E_PREMAIN_DSO)$obj",
                "fips-1.0${o}fips_premain.c",
                "-DFINGERPRINT_PREMAIN_DSO_LOAD \$(SHLIB_CFLAGS)");
@@ -920,7 +917,7 @@ if ($fips)
        $rules.= &do_rlink_rule("\$(O_FIPSCANISTER)", "\$(OBJ_D)${o}fips_start$obj", "\$(FIPSOBJ)", "\$(OBJ_D)${o}fips_end$obj", "\$(FIPS_SHA1_EXE)", "") if $fipscanisterbuild;
        $rules.=&do_link_rule("\$(PREMAIN_DSO_EXE)","\$(OBJ_D)${o}\$(E_PREMAIN_DSO)$obj \$(CRYPTOOBJ) \$(O_FIPSCANISTER)","","\$(EX_LIBS)", 1);
        
-       $rules.=&do_link_rule("\$(FIPS_SHA1_EXE)","\$(OBJ_D)${o}fips_standalone_sha1$obj \$(OBJ_D)${o}fips_sha1dgst$obj","","", 1);
+       $rules.=&do_link_rule("\$(FIPS_SHA1_EXE)","\$(OBJ_D)${o}fips_standalone_sha1$obj \$(OBJ_D)${o}sha1dgst$obj","","", 1);
        }
 
 $rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)",0);