From f6fc3b28d2f8689708f4b3062ad163ed29eadceb Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 16 Aug 2012 12:45:03 +0200 Subject: [PATCH] pilerget now can decrypt with a zeroed key --- src/pilerget.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pilerget.c b/src/pilerget.c index 3986f096..515436ef 100644 --- a/src/pilerget.c +++ b/src/pilerget.c @@ -90,7 +90,7 @@ ENDE: int main(int argc, char **argv){ - int rc; + int rc, readkey=1; struct session_data sdata; struct __config cfg; @@ -103,8 +103,9 @@ int main(int argc, char **argv){ cfg = read_config(CONFIG_FILE); + if(argc >= 3) readkey = 0; - if(read_key(&cfg)){ + if(readkey == 1 && read_key(&cfg)){ printf("%s\n", ERR_READING_KEY); return 1; }