1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Take out some annoying letters to speak over the phone

Session key entropy goes from 149 to 144 bits. It's acceptable

Fixes #31
This commit is contained in:
Nicolas Viennot 2019-10-13 05:21:45 -04:00
parent fde93450dc
commit 383b69f04c

View File

@ -231,9 +231,10 @@ int main(int argc, char **argv, char **envp)
return 0; return 0;
} }
static char tmate_token_digits[] = "abcdefghijklmnopqrstuvwxyz" static char tmate_token_digits[] = "abcdefghjkmnpqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "ABCDEFGHJKLMNPQRSTUVWXYZ"
"0123456789"; "23456789";
#define NUM_DIGITS (sizeof(tmate_token_digits) - 1) #define NUM_DIGITS (sizeof(tmate_token_digits) - 1)
static char *get_random_token(void) static char *get_random_token(void)