> In FIPS OpenSSL 1.2, fips_premain.c is produced as an output after doing
> ms\do_fips.
> A fips_premain.c.sha1 file is also produced containing the SHA1 of the c
> file. Does the security policy restricts modification to this file? My
> application is in C++ and I need to do changes in this file (like adding
> precompiled headers and adding extern "C" modifiers). Does this break the
> security policy?
>
> Pankaj

You cannot modify fips_premain.c and there is no reason you should need to.
There is no need for extern "C" modifiers, fips_premain.c is a C file so C
linkage should most definitely be the default. I'm not sure what you mean by
"add precompiled headers", but I would suggest just not using precompiled
headers when building that file.

If you need chapter and verse, check the security policy's list of
"Cryptogrpahically Significant Source Files" and you will see fips_premain.c
and its hash. Alterations of these files are specifically prohibited.

DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to