QNX cross-compiled openssl with fips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok finally my app is working and compiled with c++ compiler but the
problem persist because elf incore is bad for QNX apps compiled with g++
or QCC compiler. It generates bad digest. Even incore2 generates bad
digest, and i dunno why that happens. Any sugesstions?

Dnia 2015-03-31, wto o godzinie 12:41 +0200, Piotr ?obacz pisze:
> Ok i have finally managed to cross-compile openssl with fips for QNX
> platform. What i did wass modifing the fipsld script not to input this
> magical number[ $? -ne 42 ] && exit $? and the returned output of
> "${FIPS_SIG}" -exe "${TARGET}" was saved in SIG variable, because this
> line SIG=`"${TARGET}" tried to execute QNX compiled code on linux, what
> is rather impossible, to get the returned digest and recompile the
> target with it. Now with these little changes i was finally able to run
> openssl fips cross compiled app on qnx and i can gladly say that it
> works.
> 
> Dnia 2015-03-27, pi? o godzinie 11:04 +0100, Piotr ?obacz pisze:
> > Another problem is that compiled cross-compiled OpenSSL with fips should
> > start in its own prompt but it only spews the expected signature and
> > exits. I have modified fipsld scripts as shown in the manual and this
> > does not help. Incore was used from the tarball but maybe i have to use
> > some special modifications for QNX incore?
> > 
> > Dnia 2015-03-26, czw o godzinie 08:46 +0100, Piotr ?obacz pisze:
> > > Hello,
> > > i have been able to cross-compile openssl with fips module and what i
> > > want now is to use it within my project which is using C++. According to
> > > the manual https://wiki.openssl.org/index.php/Fipsld_and_C%2B%2B i have
> > > to modify fipsld to fipsld++. Everything works properly if i'm compiling
> > > my own libraries which are being linked with static crypto.a but if i'm
> > > going to compile some tests which are linking with those libraries i get
> > > this error:
> > > 
> > > /usr/lib/fips_premain.o: In function `FINGERPRINT_premain()':
> > > /usr/lib/fips_premain.c:103: undefined reference to `FIPS_text_start()'
> > > /usr/lib/fips_premain.c:116: undefined reference to
> > > `FIPS_incore_fingerprint(unsigned char*, unsigned int)'
> > > 
> > > According to the manual, problem occurs with C++ linker, but i have it
> > > modified in fipsld++ so that now PREMAIN_DSO looks like:
> > > 
> > > -x c "${PREMAIN_C}" -x none \
> > > 
> > > and this does not help. On Linux with gcc this was helpful but on QNX
> > > cross compilation it does not.
> > > 
> > > I would be pleased if somebody could point me what am i doing wrong...
> > > 
> > 
> 

-- 

________________________________________________________________________
Piotr ?obacz

Biuro System?w i Oprogramowania

RADMOR S.A.

tel. (58) 6996 929

e-mail: piotr.lobacz at radmor.com.pl

www.radmor.com.pl




RADMOR S.A., ul. Hutnicza 3, 81-212 Gdynia

NIP: 586-010-21-39

REGON: 190432077

KRS: 0000074029 (S?d Rejonowy Gda?sk-P??noc w Gda?sku)

Kapita? zak?adowy wp?acony: 9 282 830 PLN



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux