ddnet/src/engine/client
heinrich5991 ca8fcc823c Use more secure hash function for map downloads
SHA256 was chosen because it is reasonably standard, the file names
don't explode in length (this rules out SHA512) and it is supported by
basically all versions of OpenSSL (this rules out SHA512/256 and SHA3).

The protocol is changed in a backward compatible way: The supporting
server sends the SHA256 corresponding to the map in the `MAP_DETAILS`
message prior to sending the `MAP_CHANGE` message. The client saves the
SHA256 obtained from the `MAP_DETAILS` message until the next
`MAP_CHANGE` message.

For servers not supporting this protocol, the client falls back to
simply opening maps like in the previous scheme.

Remove the `map_version` tool, it is not being used and would have been
a little bit effort to update.

Use the OpenSSL implementation of SHA256 if it is supported, otherwise
fall back to a public domain one.

Fix #1127.
2018-06-24 17:04:50 +02:00
..
backend_sdl.cpp Another SDL GL try 2018-04-13 21:34:12 +02:00
backend_sdl.h add new shader programs in the backend 2018-03-13 21:44:58 +01:00
client.cpp Use more secure hash function for map downloads 2018-06-24 17:04:50 +02:00
client.h Use more secure hash function for map downloads 2018-06-24 17:04:50 +02:00
friends.cpp Ensure null-termination in str_escape 2017-07-08 13:06:03 +02:00
friends.h Improve friends and foes feature 2015-07-28 16:13:29 +02:00
graphics_threaded.cpp Merge #1116 2018-04-15 18:00:54 +00:00
graphics_threaded.h don't create buffers, if OpenGL 3.3 is not used 2018-04-15 19:34:56 +02:00
input.cpp Enable -Wextra and -Wformat=2 2017-07-27 20:38:17 +02:00
input.h Enable -Wextra and -Wformat=2 2017-07-27 20:38:17 +02:00
keynames.h Use scancodes instead of keycodes for input (fixes #796, please test) 2017-07-21 19:53:49 +02:00
opengl_sl.cpp fix... 2018-04-25 14:12:49 +02:00
opengl_sl.h Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
opengl_sl_program.cpp Further macosx fixes 2017-10-20 09:31:42 +02:00
opengl_sl_program.h add attributes for screen state check 2018-03-21 15:49:15 +01:00
serverbrowser.cpp Remove mem_alloc and mem_free, use standard C functions instead 2018-04-09 11:56:39 +02:00
serverbrowser.h Use a random token for serverbrowse requests 2017-10-14 21:58:23 +02:00
sound.cpp Remove mem_alloc and mem_free, use standard C functions instead 2018-04-09 11:56:39 +02:00
sound.h Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
text.cpp reset font texture at window resize 2018-05-07 06:02:44 +02:00
updater.cpp Add a way to call for external moderator help 2018-06-19 23:27:35 +02:00
updater.h Add a way to call for external moderator help 2018-06-19 23:27:35 +02:00