On Tue, Nov 02, 2010, Valery Blazhnov wrote:

>  Hi,
>
> Let us see into int_ctx_new() function in the pmeth_lib.c file. We see 
> there
>
>     ret->engine = e;
>
> for EVP_PKEY_CTX context ret without any attempt to increase engine 
> references.

It is incremented higher up int_ctx_new():

        /* Try to find an ENGINE which implements this method */
        if (e)
                {
                if (!ENGINE_init(e))
                        {
                        EVPerr(EVP_F_INT_CTX_NEW,ERR_R_ENGINE_LIB);
                        return NULL;
                        }
                }
        else
                e = ENGINE_get_pkey_meth_engine(id);

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