Neither EVP_PKEY_CTX_new_id() nor EVP_PKEY_keygen_init() 
do initialize the EVP_PKEY_CTX member pkey_gencb. (It might 
be, other initialisers like EVP_PKEY_new() behave similar.)
As default, the callback should be disabled. In either of 
the functions, preferably EVP_PKEY_CTX_new_id(), 

ctx->pkey_gencb = NULL; 

should be inserted. As a workaround insert after 
EVP_PKEY_CTX_new_id(); the line
EVP_PKEY_CTX_set_cb(ctx,NULL); 

This problem arises if the allocated ctx is not zero, 
which is normal in debug mode.

--

Peter-Michael Hager - acm senior - HAGER-ELECTRONICS GmbH - Germany



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

Reply via email to