On Thu, Dec 08, 2005, Perry L. Jones wrote: > Anyone have an idea about why the following d2i_PKCS12_fp code fails in > windows using openssl 0.9.7c? It works find in Unix/Linux. > > FILE *fp = (FILE *)NULL; > PKCS12 *p12 = (PKCS12 *)NULL; > > fp = fopen( p12file, "r" ); > if( (FILE *)NULL != fp ) > { > p12 = d2i_PKCS12_fp( fp, (PKCS12 **)NULL ); > fclose( fp ); > } > > I get the following errorr: > > "unhandled exception at 0x7c918ea in test_app.c 0xcc000005 > Access Violation writing location 0x00000010" >
Possibly: http://www.openssl.org/support/faq.html#PROG2 Oh and you need "rb" mode under Windows for fopen. 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]