check OPENSSL_NO_... before including header files that might be
[openssl.git] / apps / dsa.c
index 4f45edac6bf4986db85ceca514e8b23ab4162551..59aa0ea106e6086c45b95a589a5774d352d0566f 100644 (file)
@@ -68,7 +68,6 @@
 #include <openssl/evp.h>
 #include <openssl/x509.h>
 #include <openssl/pem.h>
-#include <openssl/engine.h>
 
 #undef PROG
 #define PROG   dsa_main
@@ -198,7 +197,7 @@ bad:
 
        ERR_load_crypto_strings();
 
-        e = ENGINE_setup(engine, bio_err);
+        e = setup_engine(bio_err, engine, 0);
 
        if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
                BIO_printf(bio_err, "Error getting passwords\n");
@@ -304,6 +303,7 @@ end:
        if(dsa != NULL) DSA_free(dsa);
        if(passin) OPENSSL_free(passin);
        if(passout) OPENSSL_free(passout);
+       apps_shutdown();
        EXIT(ret);
        }
 #endif