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]