mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:30:12 +01:00
pilerget now can decrypt with a zeroed key
This commit is contained in:
parent
8118a5dd42
commit
f6fc3b28d2
@ -90,7 +90,7 @@ ENDE:
|
|||||||
|
|
||||||
|
|
||||||
int main(int argc, char **argv){
|
int main(int argc, char **argv){
|
||||||
int rc;
|
int rc, readkey=1;
|
||||||
struct session_data sdata;
|
struct session_data sdata;
|
||||||
struct __config cfg;
|
struct __config cfg;
|
||||||
|
|
||||||
@ -103,8 +103,9 @@ int main(int argc, char **argv){
|
|||||||
|
|
||||||
cfg = read_config(CONFIG_FILE);
|
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);
|
printf("%s\n", ERR_READING_KEY);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user