Well, I want to use the finish method to clean the context that I have allocated in priv_enc (rsa_priv_enc) method (allocated memory + opened file descriptor for ioctl (to communicate with my driver)). I expected that when calling SSL_free() method, I could access to the finish method, but it doesn't because of the lock CRYPTO_LOCK_EVP_PKEY.
>The above line increased the reference count on a key when it is being used by >another structure (typically an SSL structure). It isn't safe to free up the >key until all associated SSL and SSL_CTX structures containg it are also >freed. Do you mean that my allocated context by rsa_priv_enc should be only freed when I call SSL_CTX_free? My understanding was that the context should be freed when I close my connection and I use SSL_free. Thanks, The Moud -- View this message in context: http://openssl.6102.n7.nabble.com/Engine-finish-method-for-RSA-engine-is-never-called-tp48408p48411.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
