add option to get a certificate or CRL from a URL
[openssl.git] / apps / rand.c
index 7214a9d2a80da033cc59edd5cf23e743924c84e1..790e79592c1ea92e91def9d89358d2b2515e826d 100644 (file)
@@ -77,9 +77,6 @@ int MAIN(int, char **);
 
 int MAIN(int argc, char **argv)
        {
-#ifndef OPENSSL_NO_ENGINE
-       ENGINE *e = NULL;
-#endif
        int i, r, ret = 1;
        int badopt;
        char *outfile = NULL;
@@ -178,7 +175,7 @@ int MAIN(int argc, char **argv)
                }
 
 #ifndef OPENSSL_NO_ENGINE
-        e = setup_engine(bio_err, engine, 0);
+        setup_engine(bio_err, engine, 0);
 #endif
 
        app_RAND_load_file(NULL, bio_err, (inrand != NULL));
@@ -229,10 +226,11 @@ int MAIN(int argc, char **argv)
                        {
                        for (i = 0; i < chunk; i++)
                                BIO_printf(out, "%02x", buf[i]);
-                       BIO_puts(out, "\n");
                        }
                num -= chunk;
                }
+       if (hex)
+               BIO_puts(out, "\n");
        (void)BIO_flush(out);
 
        app_RAND_write_file(NULL, bio_err);