Dave Clark wrote:
> 
> WinNT 4.0, OpenSSL 0.9.2b
> 
> I'm getting an access violation at 0xC0000005 when I attempt
> to call d2i_X509_fp to read the contents of a DER-encoded cert
> into an X509 struct.
> 
> I've traced it down to the C RTL fread() call in function
> file_read() in bss_file.c.  All the parameters passed into
> fread() seem to be OK, I have no idea what's causing this
> access violation.  I inserted an fread after the fopen in
> my calling program to test whether I could read the same
> number of bytes from the file - no problem.
> 
> Anyone have any ideas?
> 

Obligatory Windows and OpenSSL silly question: you are using the
multi-threaded runtime library aren't you?

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

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

Reply via email to