projects
/
tfcrypt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a8928c
)
-V: fix when used with -P
author
Andrey Rys
<rys@lynxlynx.ru>
Sun, 2 Aug 2020 17:16:46 +0000
(19:16 +0200)
committer
Andrey Rys
<rys@lynxlynx.ru>
Sun, 2 Aug 2020 17:16:46 +0000
(19:16 +0200)
VERSION
patch
|
blob
|
history
tfc_error.c
patch
|
blob
|
history
diff --git
a/VERSION
b/VERSION
index 7facc89938bbc5635e3d36ffa56b4c85e9b07db8..81b5c5d06cc0b8290c264b408abb32cc0986e8f2 100644
(file)
--- a/
VERSION
+++ b/
VERSION
@@
-1
+1
@@
-3
6
+3
7
diff --git
a/tfc_error.c
b/tfc_error.c
index 16e4cd0352010ced823d281de6fb6e3d7ac987f5..17efe74a443659633b103c507bc1a4b4240a8f2c 100644
(file)
--- 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);
}