Aslam wrote:
> 
> Hi,
> Following code is giving me a Access Violation on Microsoft Windows...
> 
> #include "x509.h"
> int main(int argc, char* argv[])
> {
> X509* pX509 = 0;
> FILE* fp = 0;
> 
> fp = fopen( "d:\\temp\\cert.der", "rb" );
> d2i_X509_fp( fp, &pX509 );
> return 0;
> }
> 
> I'm using openssl-0.9.6 and trying to fill the x509 structure from a der
> cert file.
> 
> I tried to figure out the cause for it, and the last thing where I went is
> there is a _lock_stream() in fread() which is actually giving me this
> problem.
> 

See if this is the cause:

http://www.openssl.org/support/faq.html#PROG2

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