> I must mention that this little program works good when linked with static > library, but not with dynamic (crash) > I recognized that problem is with such macros like PEM_load_PrivateKey or > EVP_SignFinal. For example another functions like ERR_load_crypto_strings or > ERR_error, ERR_error_string > working well.
This sounds a lot like the usual windows run time library problem. You must compile your application so that it uses the same run time libraries as the OpenSSL libs. When you're using MS VC++ to compile your application, try this: - select "Poject"-"Settings"-"C/C++" tab - set the "Category"-choice to "Code generation" - set the "Use run-time library"-option to "Multithreaded DLL" (or "Debug Multithreaded DLL" if your OpenSSL libs are debug builds) and rebuild your application. Read the OpenSSL-FAQ for more info. Cheers, Steve -- _____________________________________________________________________ GINIT Technology GmbH [EMAIL PROTECTED] Steve Wirth PGP-Key: 0x17FA604D Emmy-Noether-Str. 11 www.ginit-technology.com phone: +49-721-96681-0 D-76131 Karlsruhe fax: +49-721-96681-111 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]