Hi, With the following code I'm getting an Access Violation in _lock_stream inn ntdll.dll. #include "x509.h" int main(int argc, char* argv[]) { X509* pX509 = 0; FILE* fp = 0; fp = fopen( "d:\\temp\\microsoft user 6.cer", "rb" ); d2i_X509_fp( fp, &pX509 ); fclose(fp); return 0; } The thing is may be i'm loading the libeay32.dll in a wrong way.. I'm using libeay32.lib for it. Can some help me in this.. Thanks Aslam ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]