Using SSLEAY_MACROS and NO_RSA (with additional ifdefs) cuts the added code 
down to  around ~30KB.  This has eliminated the PKCS7 and netscape symbols 
and looks to be about as good as you can get.  Thanks Eric.

Bill

On Wednesday, March 11, 1998 12:33 AM, Eric Young [SMTP:[EMAIL PROTECTED]] 
wrote:
>
> On Tue, 10 Mar 1998, William A. Arbaugh wrote:
> > I'm using SSLeay in an embedded application.  When I try and DER decode 
a
> > DER encoded string into a X509 certificate with d2i_X509, the system 
size
> > increases by ~60KB.  Some of the symbols added are PKCS#7 functions, 
CRL
> > functions etc.  Does anyone know of a way to prevent those addtional
> > functions from being linked in (without the obvious (and tedious) 
approach
> > of adding a huge number of new #ifdefs)?
>
> Actually, as a quick fix, try compiling with SSLEAY_MACROS defined.
> For type checking reason (and DLLs), the file crypto/x509/x_all.c
> has lots of functions that suck have dependancies to everything else.
> SSLEAY_MACROS makes the headers offer macros instead of function calls.
>
> eric
> 
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/  |
+-------------------------------------------------------------------------+

Reply via email to