After downloading and unpacking
*openssl-1.0.1-beta2.tar.gz<http://www.openssl.org/source/openssl-1.0.1-beta2.tar.gz>
* and
openssl-fips-2.0rc3.tar.gz<http://opensslfoundation.com/testing/validation-2.0/source/?C=M;O=A>I
was able to build the fipscanister.lib and the other fips outputs with
no
problem from openssl-fips-2.0. However, I was not able to build
openssl-1.0.1-beta2 with the fips option.
I used the “perl Configure VC-WIN32 fips withfipslibdir=” seting the
openssl-1.0.1 fipslibdir to the correct path for the openssl-fips-2.0
outputs. I was also able to run ms\do_nasm with no errors.
However, I gets some errors when I run "nmake -f ms\ntdll.mak" with the
visual studio command prompt. First I get the error: ".\crypto\o_fips.c(60)
: fatal error C1003 : Cannot open include file: 'openssl/fips.h': No such
file or directory”
When I get this error I delete the folder: openssl-1.0.1-beta2\tmp32dll
I find the fips.h file in the openssl-fips-2.0\inc32\openssl folder and
copy it to openssl-1.0.1-beta2\inc32\openssl folder.
After “nmake -f ms\ntdll.mak” is run again, the second error is:
.\crypto\o_fips.c(60) : fatal error C1003 : Cannot open include file:
'openssl/fips_rand.h': No such file or directory
So, I again remove openssl-1.0.1-beta2\tmp32dll and this time copy the
fips_rand.h file from openssl-fips-2.0\inc32\openssl to
openssl-1.0.1-beta2\inc32\openssl.
Following with the make command again:
nmake -f ms\ntdll.mak
This time most of the make file is run, however another error appears. This
error says:
NMAKE : fatal error U1073: don’t know how to make
‘srocalslips-2.0\lib\fipscanister.lib’
Stop.
After putting in echo debugging points, the makefile appears to be breaking
at line 3211 (in Notepad++) when it gets to the command:
$(OBJ_D)\$(SSL).res: ms\version32.rc
$(RSC) /fo” $(OBJ_D)\$(SSL).res” /d SSL ms\version32.rc
I am using Windows 7 Professional 32bit, Visual Studio 2010, and NASM
version 2.09.20.
I think that the two header files need to be included in the
openssl-1.0.1-beta2 and moved into the inc32 folder by the makefile. I have
not found a solution to the last problem yet.