[openssl-users] Statically link FIPS OpenSSL to shared library application

Dr. Stephen Henson steve at openssl.org
Wed Feb 17 20:20:30 UTC 2016

On Wed, Feb 17, 2016, Gustavo Tabares wrote:

> Hello,
> I???m trying to statically link OpenSSL to my C++ shared library application
> on Linux. I???ve followed the instructions outlined in the Fipsld and C++
> Wiki page and everything builds fine. However I???m getting a fingerprint
> mismatch when calling FIPS_mode_set. If I change my shared library to an
> executable (by adding a main function) everything works fine.
> Besides building fipspremain.c with -x c / -x none (as per the Wiki page)
> and specifying the -dso flag for the incore script, is there anything else
> that I may be missing? The Wiki page covers building executables, but I
> didn???t think there was much difference between the two.

What commands are you using to build the FIPS module, OpenSSL and to link your

Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

More information about the openssl-users mailing list