]> www.wagner.pp.ru Git - openssl-gost/engine.git/commit
Always cNORM before "\n"
authorRichard Levitte <richard@levitte.org>
Mon, 22 Feb 2021 05:08:55 +0000 (06:08 +0100)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Mon, 22 Feb 2021 08:30:54 +0000 (09:30 +0100)
commitb56b7ee05276b92c282efa412ae94163b88ec350
tree2b7e81802f7213e72091a1889d691b072d366046
parentbc111014be6390ae8f3674d05b76eb205ab4c49b
Always cNORM before "\n"

Using cNORM after "\n" may or may not work, probably because of the
line buffered nature of standard output.

If an error is displayed immediately after a printf that has cNORM
after "\n", the error output sometimes "overrides" the cNORM, and you
may end up with a surprisingly colorful error message, not to mention
that this may also affect your prompt in the same manner.

The lesson is to always output cNORM before the ending "\n".
test_ciphers.c
test_context.c
test_curves.c
test_derive.c
test_digest.c
test_params.c
test_sign.c