Re: Loading a PKCS7 SignedData structure with d2i_PKCS7_fp

2005-07-11 Thread Fred Anderson
Indeed it was, thanks for all your help. :) On 7/10/05, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > On Fri, Jul 08, 2005, Fred Anderson wrote: > > > Thanks once again for the help, Steve. I've gotten beyond the > > segmentation fault using your suggestions. Now I'm getting the > > following e

Re: Loading a PKCS7 SignedData structure with d2i_PKCS7_fp

2005-07-10 Thread Dr. Stephen Henson
On Fri, Jul 08, 2005, Fred Anderson wrote: > Thanks once again for the help, Steve. I've gotten beyond the > segmentation fault using your suggestions. Now I'm getting the > following error on the PKCS7_verify call: > > error:2106906D:PKCS7 routines:PKCS7_dataInit:unknown digest type > Ah, now

Re: Loading a PKCS7 SignedData structure with d2i_PKCS7_fp

2005-07-08 Thread Fred Anderson
Thanks once again for the help, Steve. I've gotten beyond the segmentation fault using your suggestions. Now I'm getting the following error on the PKCS7_verify call: error:2106906D:PKCS7 routines:PKCS7_dataInit:unknown digest type Once again, I suspect it's something I'm doing. Given a file "pt2

Re: Loading a PKCS7 SignedData structure with d2i_PKCS7_fp

2005-07-07 Thread Dr. Stephen Henson
On Thu, Jul 07, 2005, Fred Anderson wrote: > Steve, > > Thanks for the reply. I was able to verify the signature using > "openssl smime" like you suggested, and the d2i_PKCS7_fp function is > returning a non-null value. > > I'm thinking now that the problem may be in the BIO structures I'm > cre

Re: Loading a PKCS7 SignedData structure with d2i_PKCS7_fp

2005-07-07 Thread Fred Anderson
Steve, Thanks for the reply. I was able to verify the signature using "openssl smime" like you suggested, and the d2i_PKCS7_fp function is returning a non-null value. I'm thinking now that the problem may be in the BIO structures I'm creating and passing to the verify function. Here's what I have

Re: Loading a PKCS7 SignedData structure with d2i_PKCS7_fp

2005-07-07 Thread Dr. Stephen Henson
On Thu, Jul 07, 2005, Fred Anderson wrote: > I have a binary file with a DER-encoded SignedData structure in it. I > can use the following command: > > $ openssl pkcs7 -inform DER -in pt2.out -print_certs -text > > and I get all sorts of expected information about the certificate in > the struct