Re: Compilation Error in application referencing FIPS Object Module using g++

2011-03-09 Thread raghib nasri
Now I don't think its possible. I am statically linking application with object module and library and if you have observed fipsld, first time its compiling and linking the application without any preprocessor symbol. At that time fips_premain.c observes that no HMAC defined and generates the 40 ch

Re: Compilation Error in application referencing FIPS Object Module using g++

2011-03-09 Thread Dr. Stephen Henson
On Wed, Mar 09, 2011, raghib nasri wrote: > Thanks Stephen > I have modified fipsld to compile only fips_premain.c with gcc and my rest > of the application is still using g++ for compilation and linking. But I am > not able to sort out exactly how to modify the part that will result in > embeddin

Re: Compilation Error in application referencing FIPS Object Module using g++

2011-03-09 Thread raghib nasri
Thanks Stephen I have modified fipsld to compile only fips_premain.c with gcc and my rest of the application is still using g++ for compilation and linking. But I am not able to sort out exactly how to modify the part that will result in embedding signature of exact 40 characters, in case I want to

Re: Compilation Error in application referencing FIPS Object Module using g++

2011-03-07 Thread Dr. Stephen Henson
On Mon, Mar 07, 2011, raghib nasri wrote: > Do you mean to say I should modify fipsld to use gcc for compiling > fips_premain.c. Or is there any way to still use g++ for my application with > minimal change in fipsld. Please suggest. > Well two options, one is to change it to use gcc just for

Re: Compilation Error in application referencing FIPS Object Module using g++

2011-03-07 Thread raghib nasri
Do you mean to say I should modify fipsld to use gcc for compiling fips_premain.c. Or is there any way to still use g++ for my application with minimal change in fipsld. Please suggest. On Mon, Mar 7, 2011 at 9:15 PM, Dr. Stephen Henson wrote: > On Mon, Mar 07, 2011, raghib nasri wrote: > > > H

Re: Compilation Error in application referencing FIPS Object Module using g++

2011-03-07 Thread Dr. Stephen Henson
On Mon, Mar 07, 2011, raghib nasri wrote: > Hi, >I am using FIPS Object Module and encountered an error while > compiling my application using g++. >?fips_premain.c:71: error: initializer-string for array of chars is > too long? >I cannot change fips_premain.c since its pa

Compilation Error in application referencing FIPS Object Module using g++

2011-03-06 Thread raghib nasri
Hi, I am using FIPS Object Module and encountered an error while compiling my application using g++. “fips_premain.c:71: error: initializer-string for array of chars is too long” I cannot change fips_premain.c since its part of FIPS validation I guess. Please suggest an