mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-29 19:24:37 +00:00
For -hex, print just one \n
This commit is contained in:
parent
7ca1cfbac3
commit
d615bceb2d
@ -229,10 +229,11 @@ int MAIN(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
for (i = 0; i < chunk; i++)
|
for (i = 0; i < chunk; i++)
|
||||||
BIO_printf(out, "%02x", buf[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);
|
(void)BIO_flush(out);
|
||||||
|
|
||||||
app_RAND_write_file(NULL, bio_err);
|
app_RAND_write_file(NULL, bio_err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user