Hello all,
I have some problem:
(for information: winxp, vc++7.0, openssl-0.9.8d ane e , GemPlus dll (hardware PKCS11) )

In some app A.exe I dynamicly load some dll b.dll. Then b.dll is using
openssl to get  some crypto operations on card with engin_pkcs11.dll
which use GemPlus dll .

When engin_pkcs11.dll and b.dll are linked dynamically with OpenSSL
libs it works fine..., in A.exe I can load b.dll, use it, reload many
times and it work good.
But when I link engin_pkcs11.dll and b.dll with OpenSSL`s static verion of libs I
have some problems. Everything works good only once! I mean, i can
load b.dll, use it, unload everything. But when I try to load and use
it once again i have problem in this place:
...
ret = ENGINE_ctrl_cmd_string(e, "ID", "pkcs11", 0);
ret = ENGINE_ctrl_cmd_string(e, "LIST_ADD", "1", 0);
ret = ENGINE_ctrl_cmd_string(e, "DIR_LOAD", "1", 0);
ret = ENGINE_ctrl_cmd_string(e, "DIR_ADD", sDirPath, 0);
ret = ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0);   //<<<<<<<<<<< here
is error

when I checked SSL_error i got:

.\crypto\engine\eng_dyn.c, line: 521,err: error:260B606D:engine routines:DYNAMIC_LOAD:init failed

why?why?why?

it looks that something isn`t freeed inOpenSSL... but what
any idea why? is it some bug?
Thx for any clue.
Bartek

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to