Setting ECDH and ECDSA methods in ENGINE interface does not
work properly. I can not set up ENGINE ECDH and ECDSA methods
as default.

In the file crypto/engine/tb_ecdh we have
>
>int ENGINE_set_default_ECDH(ENGINE *e)
> {
> if(e->ecdh_meth)
> return engine_table_register(&ecdh_table,
> engine_unregister_all_ECDH, e, &dummy_nid, 1, 0);
> return 1;
> }
>

and should be
>
>int ENGINE_set_default_ECDH(ENGINE *e)
> {
> if(e->ecdh_meth)
> return engine_table_register(&ecdh_table,
> engine_unregister_all_ECDH, e, &dummy_nid, 1, 1);
> return 1;
> }
>


In the file crypto/engine/tb_ecdsa we have
>
>int ENGINE_set_default_ECDSA(ENGINE *e)
> {
> if(e->ecdsa_meth)
> return engine_table_register(&ecdsa_table,
> engine_unregister_all_ECDSA, e, &dummy_nid, 1, 0);
> return 1;
> }
>

and should be
>
>int ENGINE_set_default_ECDSA(ENGINE *e)
> {
> if(e->ecdsa_meth)
> return engine_table_register(&ecdsa_table,
> engine_unregister_all_ECDSA, e, &dummy_nid, 1, 1);
> return 1;
> }
>


__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org