On Thu, 14 Mar 2002, Frank Geck wrote:

> Vadim,
>     Is that because those members in the structure are not propulated?  What
> is the issuer info?  Is this the common name of the recipients?  I don't
> think so.  This is just the serial number of the cert and the issuer so you
> could if you had all the certs on each machine find all the reciepients certs
> and get the common name from there, right?
>
> Thanks,
>
> Frank
>

exactly, it's up to lookup function to search for certificate having
issuer name and serial number (PKCS7_ISSUER_AND_SERIAL type).
One could get recipient' CN from certificate subject name and only
issuer name is available from recipient info.

regards,
Vadim

> Vadim Fedukovich wrote:
>
> > On Wed, 13 Mar 2002, Frank Geck wrote:
> >
> > > How would I get a list of the recipients from a PKCS7 message?  I have
> > > read it in and it's a signed enveloped and I have decoded it and I see
> > > that there is a STACKOF(PKCS7_RECIP_INFO), any function calls to return
> > > this to me in a text format? The common name from the cert is fine as I
> > > see the PKCS7_RECIP_INFO contains a X509 cert.
> > >
> > > Thanks,
> > >
> > > Frank
> >
> > Here's a STACK_OF(PKCS7_RECIP_INFO) and one could
> > for(i=0;j<sk_num(p7->recipientinfo);i++) {
> >   ri = sk_value(p7->recipientinfo,i)
> >   printsometest(ri)
> > }
> >
> > One could access issuer info and cert serial number from recipient info,
> > not recipient' certificate.
> >
> > hope this helps,
> > Vadim
> >
> > ______________________________________________________________________
> > OpenSSL Project                                 http://www.openssl.org
> > User Support Mailing List                    [EMAIL PROTECTED]
> > Automated List Manager                           [EMAIL PROTECTED]
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to