Steve and Goeff,

Thanks a lot for your responses.

I succesfully built the new DH library by excluding dh_asn1.c and by
defining OPENSSL_NO_RSA & OPENSSL_NO_DSA. I presume I don't need RSA and DSA
for just DH, correct?

-- Bala

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dr. Stephen Henson
Sent: Wednesday, July 30, 2003 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Need Help in separating out DH from libcrypto.a


On Wed, Jul 30, 2003, Bala Pitchandi wrote:

> Hello All,
>
> I am a newbie to OpenSSL and I have been trying to separate just the DH
> algorithm from the whole package and build it in a different OS (RTEMS, a
> POSIX compliant, Linux-like OS) using GCC Cross Compiler.
>
> I have been trying to find out the dependencies of DH with the other
> libraries - and so far all I could find is that it uses bn. And I have
> copied all the files from DH (openssl-0.9.7b\crypto\dh) and BN
> (openssl-0.9.7b\crypto\bn). I have also copied all the header files over
to
> this new directory so that it finds all the needed files right there. And
I
> am using "jam" to build this new library. I have not defined any CFLAGS
for
> the compiler.
>
> But for some reason, I could not get the code to compile. It gives
> syntactical errors like:
>
> In file included from ../../../../openssl/include/cryptlib.h:67,
>                  from ../../../../openssl/dh_asn1.c:60:
> ../../../../openssl/include/crypto.h:194: parse error before `STACK'
> ../../../../openssl/include/crypto.h:194: warning: no semicolon at end of
> struct or union
>
> Am I missing something obvious here? Any help would be greatly
appreciated.
>

If you need the DH ANS1 structures then you'll need the ASN1 library which
will pull in crypto/asn1, crypto/objects, crypto/stack and lots of other
stuff.

If you don't want that then don't compile dh_asn1.c

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to