Re: PKCS7_add_attribute

2004-09-20 Thread Dr. Stephen Henson
On Mon, Sep 20, 2004, Antonio Ruiz Martínez wrote: > Dr. Stephen Henson wrote: > > >On Thu, Sep 16, 2004, Antonio Ruiz Martínez wrote: > > > > > >>I tried to put the sequence in an octet_string and with that way there > >>is no problem but I would like to use the SEQUENCE directley if it is >

Re: PKCS7_add_attribute

2004-09-20 Thread Antonio Ruiz Martínez
Dr. Stephen Henson wrote: On Thu, Sep 16, 2004, Antonio Ruiz Martínez wrote: I tried to put the sequence in an octet_string and with that way there is no problem but I would like to use the SEQUENCE directley if it is possible. I tried that test file and it chokes sev

Re: PKCS7_add_attribute

2004-09-19 Thread Dr. Stephen Henson
On Sun, Sep 19, 2004, Dr. Stephen Henson wrote: > On Thu, Sep 16, 2004, Antonio Ruiz Martínez wrote: > > I tried to put the sequence in an octet_string and with that way there > > is no problem but I would like to use the SEQUENCE directley if it is > > possible. > > > > I tried that test file

Re: PKCS7_add_attribute

2004-09-18 Thread Dr. Stephen Henson
On Thu, Sep 16, 2004, Antonio Ruiz Martínez wrote: > I tried to put the sequence in an octet_string and with that way there > is no problem but I would like to use the SEQUENCE directley if it is > possible. > I tried that test file and it chokes several asn1 parsing tools. It looks like the at

Re: PKCS7_add_attribute

2004-09-16 Thread Antonio Ruiz Martínez
Dr. Stephen Henson wrote: On Thu, Sep 16, 2004, Antonio Ruiz Martínez wrote: Hello! Dr. Stephen Henson wrote: My guess is that there's a problem with the generation of the encoding of the attribute: what code did you use for that? oct=ASN1_S

Re: PKCS7_add_attribute

2004-09-16 Thread Dr. Stephen Henson
On Thu, Sep 16, 2004, Antonio Ruiz Martínez wrote: > Hello! > > Dr. Stephen Henson wrote: > > > > >My guess is that there's a problem with the generation of the encoding of > >the > >attribute: what code did you use for that? > > > > > >oct=ASN1_STRING_new(); >if (!ASN1_STRING_set(oct

Re: PKCS7_add_attribute

2004-09-16 Thread Antonio Ruiz Martínez
Hello! Dr. Stephen Henson wrote: On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: Hello! Thanks for your answer, it has been very useful when I use an octect string but not when but I have got a problem when I'm using a sequence. I think I am not doing something properly be

Re: PKCS7_add_attribute

2004-09-15 Thread Dr. Stephen Henson
On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: > Hello! > > Thanks for your answer, it has been very useful when I use an octect > string but not when but I have got a problem when I'm using a sequence. > I think I am not doing something properly because I don't get the > desired result.

Re: PKCS7_add_attribute

2004-09-15 Thread Antonio Ruiz Martínez
Hello! Peter Sylvester wrote: You may try a routine like the following by replacing all occurences of ESS_SIGNING_CERTIFICATE by PKCS7 and change the nid to the PKCS9 V2 defined one. Or to consider to (mis)use id-aa-timeStampToken OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(1

Re: PKCS7_add_attribute

2004-09-15 Thread Peter Sylvester
You may try a routine like the following by replacing all occurences of ESS_SIGNING_CERTIFICATE by PKCS7 and change the nid to the PKCS9 V2 defined one. Or to consider to (mis)use id-aa-timeStampToken OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smi

Re: PKCS7_add_attribute

2004-09-15 Thread Antonio Ruiz Martínez
Dr. Stephen Henson wrote: On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: Thanks for your answer, it has been very useful when I use an octect string but not when but I have got a problem when I'm using a sequence. I think I am not doing something properly because I don't ge

Re: PKCS7_add_attribute

2004-09-15 Thread Antonio Ruiz Martínez
Dr. Stephen Henson wrote: On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: Thanks for your answer, it has been very useful when I use an octect string but not when but I have got a problem when I'm using a sequence. I think I am not doing something properly because I don't ge

Re: PKCS7_add_attribute

2004-09-15 Thread Dr. Stephen Henson
On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: > > Thanks for your answer, it has been very useful when I use an octect > string but not when but I have got a problem when I'm using a sequence. > I think I am not doing something properly because I don't get the > desired result. > I've tr

Re: PKCS7_add_attribute

2004-09-15 Thread Peter Sylvester
-- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Charset: us-ascii X-Sun-Content-Lines: 12 To add an PKCS7 as an attribute, one possibiliy is to use from PKCS9 version 2: pKCS7PDU ATTRIBUTE ::= { WITH SYNTAX Contentinfo ID pkcs-9-at-pkcs7PD

Re: PKCS7_add_attribute

2004-09-15 Thread Antonio Ruiz Martínez
Hello! Dr. Stephen Henson wrote: On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: Hello! I've looking at the PKCS7_add_attribute function and I would like to insert a signed PKCS7 as an attribute. The header of the function is: PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si

Re: PKCS7_add_attribute

2004-09-15 Thread Dr. Stephen Henson
On Wed, Sep 15, 2004, Antonio Ruiz Martínez wrote: > Hello! > >I've looking at the PKCS7_add_attribute function and I would like to > insert a signed PKCS7 as an attribute. > > The header of the function is: > > PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,void > *val