On Fri, Jan 06, 2006, Szabolcs Berecz wrote:

> Hi!
> 
> I'm not sure if you received this message, so I resend it:
> 
> 
> 
> I'm trying to parse a PKCS7 structure and it works on linux (0.9.7d) but not
> on windows (0.9.7e)
> 
> The error string is:
> "error:0D07207B:lib(13):func(114):reason(123)", which means "header too long"
> 
> I have tried d2i_PKCS7, d2i_PKCS7_fp and d2i_PKCS7_BIO with the same results.
> 
> The code is very simple. It reads the data from file to a char array
> and calls d2i_PKCS7 which returns NULL. Do you have any idea what the problem
> could be? (The results are the same for several files (containing
> envelopedData and
> signedData)
> 
> On windows I compiled it with these libs: libeay32.lib ssleay32.lib
> 

Are you opening the file in binary mode?

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to