X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_error.c;h=17efe74a443659633b103c507bc1a4b4240a8f2c;hb=0d620a6eb276b6610913a5d944e380f00d589a43;hp=16e4cd0352010ced823d281de6fb6e3d7ac987f5;hpb=1a8928c3ab5bd19851a3d2d03451b2f8a25c62e9;p=tfcrypt.git diff --git a/tfc_error.c b/tfc_error.c index 16e4cd0..17efe74 100644 --- a/tfc_error.c +++ b/tfc_error.c @@ -91,11 +91,14 @@ void usage(void) tfc_yesno is_embedded_prog = NO; if (optopt == 'V') { - char shash[64]; tfc_say("tfcrypt toolkit, version %s.", _TFCRYPT_VERSION); - hash_defaults(shash, sizeof(shash)); - tfc_say("Defaults hash: %s", shash); - memset(shash, 0, sizeof(shash)); + if (ctr_mode != TFC_MODE_PLAIN) { + char shash[64]; + + hash_defaults(shash, sizeof(shash)); + tfc_say("Defaults hash: %s", shash); + memset(shash, 0, sizeof(shash)); + } xexit(0); }