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, KDC_PRINCNAME_d2i, etc.
>
> The magic works so that you do not have to implement those functions with 
> new code because the macros will expand the sequence (so that they know 
> what shal be done) and write the code for you.
>

The functions are actually d2i_KDC_PRINNAME(), i2d_KDC_PRINCNAME(),
KDC_PRINCNAME_new() and KDC_PRINCNAME_free().

To answer the OP query, no you don't need them after every single SEQUENCE,
only for the ones you want to encode/decode.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to