Re: Use of IMPLEMENT_ASN1_FUNCTIONS()

2010-10-05 Thread lists
For what I understood recently (I had to work a bit with it), the macro IMPLEMENT_ASN1_FUNCTIONS will expand (macro usage is quite heavy in OpenSSL) to provide a number of functions for the struct KDC_PRINCNAME, such as KDC_PRINCNAME_i2d, KDC_PRINCNAME_d2i, etc. The magic works so that you

Re: Use of IMPLEMENT_ASN1_FUNCTIONS()

2010-10-05 Thread Dr. Stephen Henson
On Tue, Oct 05, 2010, lists wrote: For what I understood recently (I had to work a bit with it), the macro IMPLEMENT_ASN1_FUNCTIONS will expand (macro usage is quite heavy in OpenSSL) to provide a number of functions for the struct KDC_PRINCNAME, such as KDC_PRINCNAME_i2d,

Use of IMPLEMENT_ASN1_FUNCTIONS()

2010-10-04 Thread Vinay Kumar L
Hi All, I found a code snippet as follows: ASN1_SEQUENCE(KDC_PRINCNAME) = { ASN1_EXP(KDC_PRINCNAME, realm, ASN1_GENERALSTRING, 0), ASN1_EXP(KDC_PRINCNAME, princname, KRB5_PRINCNAME, 1) } ASN1_SEQUENCE_END(KDC_PRINCNAME); IMPLEMENT_ASN1_FUNCTIONS(KDC_PRINCNAME) Here