Skip to content

Commit

Permalink
Remove \ from the valid characters.
Browse files Browse the repository at this point in the history
A passphrase with a \ at the end of the phrase will let the config
egine blow up so remove that character.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent fb7f360 commit 00e7a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/passphrase.c
Expand Up @@ -57,7 +57,7 @@ char *generate_crypto_passphrase(int length)
char valid_chars[] = "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789"
"!@#$%^&*()-_=+|\\[]{};:,.<>?/~";
"!@#$%^&*()-_=+|[]{};:,.<>?/~";

rand_bytes = (unsigned char *)malloc(length);
passphrase = (char *)malloc(length);
Expand Down Expand Up @@ -124,7 +124,7 @@ char *generate_crypto_passphrase(int length)
char valid_chars[] = "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789"
"!@#$%^&*()-_=+|\\[]{};:,.<>?/~";
"!@#$%^&*()-_=+|[]{};:,.<>?/~";

rand_bytes = (int *)malloc(length * sizeof(int));
passphrase = (char *)malloc(length);
Expand Down

0 comments on commit 00e7a61

Please sign in to comment.