summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-22 13:06:55 +0100
committersin <sin@2f30.org>2014-09-22 13:06:55 +0100
commit6a7643664dcf0c3cd87bc2d58e05b413cbc1851e (patch)
tree6c93c98d4732e44c8e4f1d84bfa27f7608a6924c
parentb3c0edb57d106c2d9d1652d6aa08023d154cf4c3 (diff)
Inform the user if encryption is enabled but the datafile is not encrypted
-rw-r--r--ratox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index 77e14c9..69ff979 100644
--- a/ratox.c
+++ b/ratox.c
@@ -607,8 +607,11 @@ dataload(void)
}
if (encryptsave == 1) {
- if (tox_is_data_encrypted(data) == 0)
+ if (tox_is_data_encrypted(data) == 0) {
+ printout("%s is not encrypted, disabling encryption\n",
+ DATAFILE);
encryptsave = 0;
+ }
} else {
if (tox_is_data_encrypted(data) == 1) {
fprintf(stderr, "Unable to load %s, it is encrypted\n",