register the engine as default engine in ENGINE_set_default()
authorNils Larsch <nils@openssl.org>
Fri, 24 Nov 2006 18:37:43 +0000 (18:37 +0000)
committerNils Larsch <nils@openssl.org>
Fri, 24 Nov 2006 18:37:43 +0000 (18:37 +0000)
PR: 1431

crypto/engine/tb_ecdh.c
crypto/engine/tb_ecdsa.c

index 59977f7..c8ec781 100644 (file)
@@ -107,7 +107,7 @@ 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);
+                               engine_unregister_all_ECDH, e, &dummy_nid, 1, 1);
        return 1;
        }
 
index e30b02e..005ecb6 100644 (file)
@@ -92,7 +92,7 @@ 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);
+                               engine_unregister_all_ECDSA, e, &dummy_nid, 1, 1);
        return 1;
        }