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
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,
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