Bill

I am trying to figure out which of the Dirctories I need to compile and link
to generate a min size cryptographic binary.

{SYMMETRIC CIPHERS blowfish(3), cast(3), des(3), idea(3), rc2(3), rc4(3),
rc5(3) }
In this I need only let's RC4.
 
{ PUBLIC KEY CRYPTOGRAPHY AND KEY AGREEMENT dsa(3), dh(3), rsa(3)  }
I need only rsa encryption.

{CERTIFICATES x509(3), x509v3(3)  }
I need only x509 format certificate.

{AUTHENTICATION CODES, HASH FUNCTIONS hmac(3), md2(3), md4(3), md5(3),
mdc2(3), ripemd(3), sha(3) }
I need md5 Authentication and "hmac" Hashing.

{ AUXILIARY FUNCTIONS err(3), threads(3), rand(3), OPENSSL_VERSION_NUMBER(3)
}
What ever the  Min needed.

{INPUT/OUTPUT, DATA ENCODING asn1(3), bio(3), evp(3), pem(3), pkcs7(3),
pkcs12(3) }
 What ever  the Min need 

{INTERNAL FUNCTIONS bn(3), buffer(3), lhash(3), objects(3), stack(3),
txt_db(3) }
What ever  the Min need.

My Environment is :
I am have a make file. Where in a def.xxx and rules.xxx are called.
and then I have target specifified.
e,g

security_build: crypto.o asn1.o bn.o buff.o lh.o bio.o evp.o xxxxxxx xxxx
xxx ...
        $(AR) crus libcrypto.a  crypto.o asn1.o buff.o lh.o bio.o evp.o xxx
xx xxx ...
 

I gave my Flags as , 
ADDED_CFLAGS += -DVXWORKS=1 -fno-volatile -DGETPID_IS_MEANINGLESS \
                -DNO_CHMOD -DNO_BF=1 \
                -DNO_MD4=1 \
                -DNO_RC2=1 -DNO_RC5=1 \
                -DNO_IDEA=1 \
                -DNO_CAST=1 -DNORIPEMD=1 \
                -DNO_HMAC=1 \
                -DNO_MDC2=1 -DNO_ERR=1 -Wall

So every time a xxx.o file is generated, it takes these flags and  compiles.

====================================
When I try to Physicall compile these , I get this error

In file included from
C:/praveen/project/Security/openssl-0.9.6c/crypto/md4/md4_
locl.h:62,
                 from
C:/praveen/project/Security/openssl-0.9.6c/crypto/md4/md4_
dgst.c:60:
c:/praveen/project/Security/openssl-0.9.6c/include/openssl/md4.h:67:23:
#error M
D4 is disabled.
In file included from
C:/praveen/project/Security/openssl-0.9.6c/crypto/md4/md4_
one.c:61:
c:/praveen/project/Security/openssl-0.9.6c/include/openssl/md4.h:67:23:
#error M
D4 is disabled.
make: *** [md4.o] Error 0x1
=================================

I don't know if I am missing some compiling methodlogy. The point for me , I
need a small vxworks image. 

-Praveen


-----Original Message-----
From: Bill Pringlemeir [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 12:06 PM
To: Praveen Dulam
Cc: '[EMAIL PROTECTED]'
Subject: Re: VxWorks and OPEN SSL questions -


>>>>> "Praveen" == Praveen Dulam <[EMAIL PROTECTED]> writes:

 Praveen> Bill I am getting this error on bss_log.c file
 Praveen> compilation. This is to do with <syslog.h> file.

Don't compile it!  The cagey OpenSSL developers give you this hint,

   /*
        Why BIO_s_log?

        BIO_s_log is useful for system daemons (or services under NT).
        It is one-way BIO, it sends all stuff to syslogd (on system
        that commonly use that), or event log (on NT), or OPCOM (on
        OpenVMS).  
   */

There is no Syslog service on MS-DOS or vxWorks.  That is the NT event
services or syslogd on *nix [maybe even BSD].  This wasn't that useful
for many of the applications that you might use with vxWorks.  I
defined out the error messages with "-DNO_ERR".  I don't think this
would be very useful at all without the strings.  Take a look at the
function names and comments in any of the OpenSSL code.  You will
quickly figure out what a file is for.

However, if you do need it, you actually have to do some work ;-)

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

Reply via email to