Hi Dr Stephen, Thanks for your response.
This is what I am trying to do. I have an application which is test.exe while executing it will load the DLL (t.dll) . In the DLL I have one of the file which calls the FIPS_mode_set. 1) So while creating the DLL ( t.dll) I used the fipslink.pl just like the one I used to create the exe. I ran into issue with the fipslink.pl when it called the "$fips_hash=`$fips_premain_dso $fips_target`" in the pl file. Since its just calls the DLL, its gets stuck say you are attempting to open an DLL. So I stated using the fips_preamin_dso. 2) If I dont do this linking with the DLL, when I run my application I get this err " FIPS_CHECK_INCORE_FINGERPRINT:fingerprint does not match:fips.c:238". So if my file( which as the FIPS_mode_set ) is part of the DLL how can I resolve this issue..? BTW I used the fipsld in my unix environment and I got to working with out any issues. I am running into problems on windows only. Thanks for your help in advance. Thanks, Justin. --- On Tue, 11/4/08, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: From: Dr. Stephen Henson <[EMAIL PROTECTED]> Subject: Re: Error while linking fips1.2 on windows To: openssl-users@openssl.org Date: Tuesday, November 4, 2008, 12:36 PM On Tue, Nov 04, 2008, Justin A wrote: > Hi All, > > I am getting an error while building the DLL while using the fipslink.pl. > > > > *************** > > Error:- > > X:/test/fips_premain_dso.exe test_t.dll > > 3800:error:25078067:DSO support routines:WIN32_LOAD:could not load the shared li > > brary:.\crypto\dso\dso_win32.c:172:filename(test_t.dll) > > 3800:error:25070067:DSO support routines:DSO_load:could not load the shared libr > > ary:.\crypto\dso\dso_lib.c:244: > > Get hash failure at X:/test/fipslink.pl line 47. > > *************** > > > > ************** > > FIPS_LINK=link > > FIPS_CC=cl > > PREMAIN_DSO_EXE="X:\fips/fips_premain_dso.exe" > > FIPS_TARGET=$TARGETLIB > > FIPS_CC_ARGS="/Fofips_premain.obj $SHLIB_CFLAGS -c" > > FIPS_SHA1_EXE="X:\fips/fips_standalone_sha1.exe" > > FIPSLIB_D="X:\lib" > > > > This is how I am creating the fips_premain_obj > > > > cl /Fofips_premain.obj -IX:/fips/include /MD /Ox /O2 /Ob2 /W3 /Gs0 /GF /Gy /nologo -DDEBUG_FINGERPRINT_PREMAIN -DDSO_WIN32 > > -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPREC > > ATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_CAMELLIA > > -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_TLSEXT -DOPENS > > SL_NO_CMS -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5 -DOPENSSL_FIPS -DOPENSSL_NO_DYN > > AMIC_ENGINE -c X:/fips/fips_premain.c > > > > ************** > > Well it isn't clear what you are trying to do. If you want to use the 1.2 DLLs then you don't need to touch fipslink.pl at all you just link to them as you would any other DLL. You only need fipslink.pl when you want to create an application using the static libraries. If you want to do that include the command line you passed to fipslink.pl Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]