On Tue, Nov 04, 2008, Justin A wrote: > 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. >
If you are using a recent snapshot you will also need crypt32.lib . If that doesn't work I suggest you try some of the Windows tools to see what the dependencies are. I think dumpbin /imports will do that in VC++. 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]