Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fips_premain.c, C++ compiler, and work arounds?

125 views
Skip to first unread message

Jeffrey Walton

unread,
Mar 9, 2014, 8:47:01 AM3/9/14
to
I still have not found a solution to using OpenSSL with a C++ compiler.

fips_premain.c makes the following declarations. They lack 'extern
"C"', so I've got unresolved symbols:

extern const void *FIPS_text_start(), *FIPS_text_end();
extern const unsigned char FIPS_rodata_start[], FIPS_rodata_end[];
extern unsigned char FIPS_signature[20];
extern unsigned int FIPS_incore_fingerprint(unsigned char
*,unsigned int);

Adding -Wl,--no-demangle to LDFLAGS shows the linker is looking for:


Is fipsld considered sequestered?
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Dr. Stephen Henson

unread,
Mar 9, 2014, 9:06:51 AM3/9/14
to
On Sun, Mar 09, 2014, Jeffrey Walton wrote:

> I still have not found a solution to using OpenSSL with a C++ compiler.
>
> fips_premain.c makes the following declarations. They lack 'extern
> "C"', so I've got unresolved symbols:
>
> extern const void *FIPS_text_start(), *FIPS_text_end();
> extern const unsigned char FIPS_rodata_start[], FIPS_rodata_end[];
> extern unsigned char FIPS_signature[20];
> extern unsigned int FIPS_incore_fingerprint(unsigned char
> *,unsigned int);
>
> Adding -Wl,--no-demangle to LDFLAGS shows the linker is looking for:
>
> Is fipsld considered sequestered?

No fipsld is not sequestered. Any script which works in an equivalent way is
acceptable. It must however include the same steps as fipsld including
checking the signatures of fipscanister.o and fips_premain.c

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