i got it. thank you very much

From: "Victor B. Wagner" <[EMAIL PROTECTED]>
Reply-To: openssl-users@openssl.org
To: openssl-users@openssl.org
Subject: Re: source code of function i2d_X509()
Date: Fri, 23 Mar 2007 13:59:27 +0300

On 2007.03.22 at 17:45:33 -0700, LIDA WANG wrote:

> Could anyone tell me where i can find the source code of function
> i2d_X509()?

File crypto/asn1/x_x509.c contain macro
IMPLEMENT_ASN1_FUNCTIONS(X509) in the line 136 (as of 0.9.8e)

This macro is expanded during compilation into definitions
of d2i_X509, i2d_X509, X509_new and X509_free.

So, if you really want to see definition of this function, you should
run this file through preprocessor, (for example, if you use gcc, add -E
switch) with all the same options which are used during compilation
(i.e all -D and -I).

Or, you can instead study definition of IMPLEMENT_ASN1_FUNCTIONS macro
in the crypto/asn1/asn1t.h. It is quite complicated macro with multiple
levels of expansion.


> thanks a lot.
>
> _________________________________________________________________
> Exercise your brain! Try Flexicon.
> http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglinemarch07
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to