On Wed, Nov 03, 2010, Valery Blazhnov wrote:

>  Yes, but EVP_PKEY_CTX_new() may be called and is really called sometimes 
> in OpenSSL functions with NULL engine. In that case ENGINE_init(e) is not 
> called in int_ctx_new() but then we get engine with
> e = ENGINE_get_pkey_meth_engine(id);
> and assign it to ret->engine without ENGINE_init(e).
>
>

Well ENGINE_get_pkey_meth_engine() calls engine_table_select() which itself
should up the engine reference count.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to