Display hash of current defaults.
[tfcrypt.git] / tfc_error.c
index c4e51f169669b2684c480207a8412b07707bddd6..5729de0f42ff26ad18db6e37da6f81c4d4c7e934 100644 (file)
@@ -91,7 +91,11 @@ 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));
                xexit(0);
        }