When only the key is given to "enc", the IV is undefined
[openssl.git] / apps / gendsa.c
index 3fdbf3772217e22f60b979803adc4b6e3c532046..b990eecbd24b82f2b81e1d1f4d24e6479e9fa5b1 100644 (file)
@@ -162,7 +162,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 +231,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