Update from HEAD.
[oweals/openssl.git] / crypto / engine / eng_lib.c
index 999061a8ed828c2a763505462e15522cee122b7f..5815b867f4937fe5d484f38bb3d666f6b626e367 100644 (file)
  *
  */
 
-#include <openssl/crypto.h>
-#include "cryptlib.h"
 #include "eng_int.h"
-#include <openssl/rand.h> /* FIXME: This shouldn't be needed */
-#include <openssl/engine.h>
+#include <openssl/rand.h>
 
 /* The "new"/"free" stuff first */
 
@@ -92,6 +89,7 @@ void engine_set_all_null(ENGINE *e)
        e->dsa_meth = NULL;
        e->dh_meth = NULL;
        e->rand_meth = NULL;
+       e->store_meth = NULL;
        e->ciphers = NULL;
        e->digests = NULL;
        e->destroy = NULL;
@@ -110,7 +108,7 @@ int engine_free_util(ENGINE *e, int locked)
 
        if(e == NULL)
                {
-               ENGINEerr(ENGINE_F_ENGINE_FREE,
+               ENGINEerr(ENGINE_F_ENGINE_FREE_UTIL,
                        ERR_R_PASSED_NULL_PARAMETER);
                return 0;
                }