Stop spurious "unable to load config info" errors in req
[openssl.git] / apps / gendsa.c
index 3fdbf3772217e22f60b979803adc4b6e3c532046..6b741429911c2b34ad1f3d3a6349eef6b9d44385 100644 (file)
@@ -68,7 +68,6 @@
 #include <openssl/dsa.h>
 #include <openssl/x509.h>
 #include <openssl/pem.h>
-#include <openssl/engine.h>
 
 #define DEFBITS        512
 #undef PROG
@@ -162,7 +161,7 @@ bad:
                goto end;
                }
 
-        e = ENGINE_setup(engine, bio_err);
+        e = setup_engine(bio_err, engine, 0);
 
        if(!app_passwd(bio_err, NULL, passargout, NULL, &passout)) {
                BIO_printf(bio_err, "Error getting password\n");
@@ -231,6 +230,7 @@ end:
        if (out != NULL) BIO_free_all(out);
        if (dsa != NULL) DSA_free(dsa);
        if(passout) OPENSSL_free(passout);
+       apps_shutdown();
        EXIT(ret);
        }
 #endif