Re: bio_ber.c

2004-08-06 Thread El hallabi-Kettani Abderrahmane
Good morning Doctor, this is the structure : typedef struct structure_st { ASN1_OBJECT *type; X509 *x509; union { char *ptr; /* NID_structure_data */ ASN1_OCTET_STRING *data; /* NID_structure_signed

Re: bio_ber.c

2004-08-05 Thread Dr. Stephen Henson
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_FUNCT

Re: bio_ber.c

2004-08-05 Thread El hallabi-Kettani Abderrahmane
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,

Re: bio_ber.c

2004-08-05 Thread Dr. Stephen Henson
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 repr

Re: bio_ber.c

2004-08-04 Thread Dr. Stephen Henson
On Wed, Aug 04, 2004, El hallabi-Kettani Abderrahmane wrote: > Thank you Doctor, > yes I saw the pkcs7_asn1.c , but this work just for a > DER > encode, and not for BER encode . > > The decoder can handle BER with no problems. Also since DER is a special case of BER the encoder will produce a