-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client cuts passwords at 47 chars #530
Comments
I found where freeciv21/common/networking/connection.h Line 42 in 80d2c15
Is this the correct place where it was defined and is it a mistake, or did you make a mistake? |
|
I don't think you understood my question, sorry. You said MAX_LEN_PASSWORD = 256, yet where (i assume/believe) it is definied, defines it as 512. Is that a mistake and should that be 256, or did you type it incorrectly? |
Oh sorry I mistyped, that's what named constants are for 😊 It should be |
I would suggest that we not have it equal 512 as that is a really long password, and even know if someone wanted it really secure could easily risk not being able to get into the account. |
A limit at 512 bytes doesn't hurt either... Changing it would break compatibility with existing clients and servers. |
Makes sense. #531 for fix then. |
The client uses
MAX_LEN_NAME
(=48) where it ought to beMAX_LEN_PASSWORD
(=256512):freeciv21/client/gui-qt/page_network.cpp
Line 454 in 673c43d
freeciv21/client/gui-qt/page_network.cpp
Line 442 in 673c43d
Found by panch93
The text was updated successfully, but these errors were encountered: