On Thu, Aug 05, 2004, El hallabi-Kettani Abderrahmane wrote:
> you have right Doctor,
> IMPLEMENT_ASN1_FUNCTIONS(stname)
> call
> IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname,
> stname)
> wich call
> IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname)
> wich calls
> 1) IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname,
> itname) 2)
> IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname,
> fname)
>
>
> for 2) it calls :
>
> stname *fname##_new(void) \
> { \
> return (stname
> *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \
> } \
> void fname##_free(stname *a) \
> { \
> ASN1_item_free((ASN1_VALUE *)a,
> ASN1_ITEM_rptr(itname)); \
> }
>
> and for 1) , it calls :
> *d2i_##fname(stname **a, unsigned char **in, long len)
> return (stname *)ASN1_item_d2i((ASN1_VALUE **)a,
> in, len, ASN1_ITEM_rptr(itname));\
>
> so im obliged to pass by ASN1_ITEM_rptr wich take me
> to
> const ASN1_ITEM structure##it, but i can't associate
> the item with this new structure like PKCS7 or X509 .
>
> more help Doctor :) .
>
You should also include a DECLARE_ASN1_FUNCTIONS(whatever)
How are you defining this new structure?
Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]