projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed incorrect return code handling in ssl3_final_finish_mac
[openssl.git]
/
apps
/
rand.c
diff --git
a/apps/rand.c
b/apps/rand.c
index 7214a9d2a80da033cc59edd5cf23e743924c84e1..790e79592c1ea92e91def9d89358d2b2515e826d 100644
(file)
--- a/
apps/rand.c
+++ b/
apps/rand.c
@@
-77,9
+77,6
@@
int MAIN(int, char **);
int MAIN(int argc, char **argv)
{
int MAIN(int argc, char **argv)
{
-#ifndef OPENSSL_NO_ENGINE
- ENGINE *e = NULL;
-#endif
int i, r, ret = 1;
int badopt;
char *outfile = NULL;
int i, r, ret = 1;
int badopt;
char *outfile = NULL;
@@
-178,7
+175,7
@@
int MAIN(int argc, char **argv)
}
#ifndef OPENSSL_NO_ENGINE
}
#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));
#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]);
{
for (i = 0; i < chunk; i++)
BIO_printf(out, "%02x", buf[i]);
- BIO_puts(out, "\n");
}
num -= chunk;
}
}
num -= chunk;
}
+ if (hex)
+ BIO_puts(out, "\n");
(void)BIO_flush(out);
app_RAND_write_file(NULL, bio_err);
(void)BIO_flush(out);
app_RAND_write_file(NULL, bio_err);