Re: ASN1_ANY

2006-05-31 Thread Saurabh Arora
On 5/31/06, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: On Tue, May 30, 2006, Saurabh Arora wrote: > On 5/29/06, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > , but i am unable to find a way for decoding . > can you tell the way.. how to check the type V_ASN1_SEQUENCE . > ASN1_TYPE_get().

Re: ASN1_ANY

2006-05-31 Thread Dr. Stephen Henson
On Tue, May 30, 2006, Saurabh Arora wrote: > On 5/29/06, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > , but i am unable to find a way for decoding . > can you tell the way.. how to check the type V_ASN1_SEQUENCE . > ASN1_TYPE_get(). Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP ke

Re: ASN1_ANY

2006-05-30 Thread Saurabh Arora
On 5/29/06, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: On Mon, May 29, 2006, Saurabh Arora wrote: > hi all > > heres another lead , but with few problems : > > using this function we can set the type : > - > void ASN1_TYPE_set(a,type,value) > -- > where > ASN1_TYPE *a; > int t

Re: ASN1_ANY

2006-05-29 Thread Dr. Stephen Henson
On Mon, May 29, 2006, Saurabh Arora wrote: > hi all > > heres another lead , but with few problems : > > using this function we can set the type : > - > void ASN1_TYPE_set(a,type,value) > -- > where > ASN1_TYPE *a; > int type; > char *value; > > so wen i try this with the type -

Re: ASN1_ANY

2006-05-29 Thread Saurabh Arora
hi all heres another lead , but with few problems : using this function we can set the type : - void ASN1_TYPE_set(a,type,value) -- where ASN1_TYPE *a; int type; char *value; so wen i try this with the type - V_ASN1_SEQUENCE, what should i add in the field (char *)value ?? do i

Re: ASN1_ANY

2006-05-29 Thread Saurabh Arora
hi all heres one lead .. which makes me to do r2i but NOT i2r ATTRIBUTE *attr; ATTRIBUTE1 *attr_1; attr->type = OBJ_nid2obj(NID_of_Attribute1); if ((attr->value=sk_ASN1_TYPE_new_null()) == NULL) goto err; if(!(attr_1 = ATTRIBUTE1_new())) goto err; /* after setting the field valu