Hi Dr Stephen, >>Well the fipslink.pl error is caused by a call to LoadLibraryA() failing on >>that DLL. What happens if you call fips_premain_dso test.dll?
X:/fips/fips_premain_dso.exe test.dll 2992:error:25078067:DSO support routines:WIN32_LOAD:could not load the shared li brary:.\crypto\dso\dso_win32.c:172:filename(test.dll) 2992: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:/fipslink.pl line 48. I suspect I missing some library or something while creating the test.dll. This is how my env is set INC_D="$FIPSROOT/$OSNAME/include" INCL_D="$FIPSROOT/$OSNAME/bin" CFLAG="/MD /Ox /O2 /Ob2 /W3 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE /Fdout32 -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_TLSEXT -DOPENSSL_NO_CMS -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5 -DOPENSSL_FIPS -DOPENSSL_NO_DYNAMIC_ENGINE" EX_LIBS="wsock32.lib gdi32.lib advapi32.lib user32.lib fips_premain_dso.lib fipscanister.lib " SHLIB_CFLAGS="$INC $CFLAG FIPS_LINK=link FIPS_CC=cl PREMAIN_DSO_EXE="X:\fips/fips_premain_dso.exe" FIPS_TARGET=test.dll FIPS_CC_ARGS="X:\lib/fips_premain.obj $SHLIB_CFLAGS -c" FIPS_SHA1_EXE="X:\fips/fips_standalone_sha1.exe" FIPSLIB_D="X:\lib" >>Is there some additional dependency which test.exe satisfies but which a plain >>call loading the library would not?test.exe is just a wrapper around the >>API's which is used by the auto loader to load the symbols from the test.dll. >>The FIPS_mode_set is in the file which is part of test.dll. As I understand I >>need to use the fipslink.pl tool which internally calls link.exe and >>calculates the hash and uses that with fips_premain.obj and then finally >>calls link.exe. Let me know if you have any imformation on using the fipslink.pl with fips_premain_dso set in the ENV. Your help is appreciated. 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, 3:05 PM On Tue, Nov 04, 2008, Justin A wrote: > > 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..? > > Well the fipslink.pl error is caused by a call to LoadLibraryA() failing on that DLL. What happens if you call fips_premain_dso test.dll? Is there some additional dependency which test.exe satisfies but which a plain call loading the library would not? 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]