Fix engine cryptodev: pointer to IV
[oweals/openssl.git] / crypto / engine / tb_eckey.c
index a1cffe8159e72052818644ef407926feee64d625..7c05c01d10c5e97c44ec7b8cb74d804461e0748a 100644 (file)
 
 #include "eng_int.h"
 
-/*
- * If this symbol is defined then ENGINE_get_default_EC_KEY(), the function that
- * is used by EC_KEY to hook in implementation code and cache defaults (etc),
- * will display brief debugging summaries to stderr with the 'nid'.
- */
-/* #define ENGINE_EC_KEY_DEBUG */
-
 static ENGINE_TABLE *dh_table = NULL;
 static const int dummy_nid = 1;
 
@@ -76,7 +69,7 @@ static void engine_unregister_all_EC(void)
 
 int ENGINE_register_EC(ENGINE *e)
 {
-    if (e->ec_meth)
+    if (e->ec_meth != NULL)
         return engine_table_register(&dh_table,
                                      engine_unregister_all_EC, e, &dummy_nid,
                                      1, 0);
@@ -93,7 +86,7 @@ void ENGINE_register_all_EC()
 
 int ENGINE_set_default_EC(ENGINE *e)
 {
-    if (e->ec_meth)
+    if (e->ec_meth != NULL)
         return engine_table_register(&dh_table,
                                      engine_unregister_all_EC, e, &dummy_nid,
                                      1, 1);