On Thu, Aug 05, 2004, El hallabi-Kettani Abderrahmane wrote:

> Thank you Doctor for your reply.
> Is there any example who's applied to BER format.
> I want to deploy the d2i_PKCS7_bio for another
> structure 
> which is like a PKCS7 but in BER encoding to load it,
> and i have to use item to represent  it .
> I use this function :
> struct *d2i_struct_bio(BIO *bp, struct **st)
> {
>   return ASN1_item_d2i_bio((const ASN1_ITEM *)&struct,
> bp, st);
> }
>  
> but i receive an error like this :
> undefined reference to `struct_it'
> 

You shouldn't be attempting to use things at that level. If you include the
IMPLEMENT_ASN1_FUNCTIONS(SOMETHING) you will automatically get the correct
functions called d2i_SOMETHING, i2d_SOMETHING, SOMETHING_new() and
SOMETHING_free().

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]

Reply via email to