Fix a variety of warnings generated by some elevated compiler-fascism,
[openssl.git] / crypto / engine / tb_cipher.c
index c5a50fc91026ecb85b72d759dce32adabf5c9fb6..177fc1fb739ae3d8481b1e490da7ebc210e60984 100644 (file)
@@ -52,8 +52,6 @@
  *
  */
 
-#include <openssl/evp.h>
-#include <openssl/engine.h>
 #include "eng_int.h"
 
 /* If this symbol is defined then ENGINE_get_cipher_engine(), the function that
@@ -81,7 +79,7 @@ int ENGINE_register_ciphers(ENGINE *e)
                int num_nids = e->ciphers(e, NULL, &nids, 0);
                if(num_nids > 0)
                        return engine_table_register(&cipher_table,
-                                       &engine_unregister_all_ciphers, e, nids,
+                                       engine_unregister_all_ciphers, e, nids,
                                        num_nids, 0);
                }
        return 1;
@@ -103,7 +101,7 @@ int ENGINE_set_default_ciphers(ENGINE *e)
                int num_nids = e->ciphers(e, NULL, &nids, 0);
                if(num_nids > 0)
                        return engine_table_register(&cipher_table,
-                                       &engine_unregister_all_ciphers, e, nids,
+                                       engine_unregister_all_ciphers, e, nids,
                                        num_nids, 1);
                }
        return 1;