"FALLBACK" handling was a hack that was thrown out long ago in the
[openssl.git] / apps / genrsa.c
index dfcb523ebabae0375308753a2494b7eb25d65043..b5ae1beacf1fee70fdeaf42b6460a51080656df2 100644 (file)
@@ -69,7 +69,7 @@
 #include <openssl/evp.h>
 #include <openssl/x509.h>
 #include <openssl/pem.h>
-#include <openssl/engine.h>
+#include <openssl/rand.h>
 
 #define DEFBITS        512
 #undef PROG
@@ -242,6 +242,7 @@ err:
        if(passout) OPENSSL_free(passout);
        if (ret != 0)
                ERR_print_errors(bio_err);
+       apps_shutdown();
        EXIT(ret);
        }