ddnet/cmake
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
..
toolchains Preliminary version of cross-compiled DMG archives 2017-11-09 00:16:52 +01:00
Download_GTest_CMakeLists.txt.in Allow cross-compilation from Linux to macOS 2017-10-25 16:57:25 +02:00
FindCrypto.cmake Use more secure hash function for map downloads 2018-06-24 17:04:50 +02:00
FindCurl.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindFreetype.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindGLEW.cmake Remove superfluous set(*_FOUND ON) 2018-02-18 02:30:05 +01:00
FindMySQL.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindOgg.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindOpus.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindOpusfile.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindPnglite.cmake Revert "Fix bundled pnglite" 2018-02-17 01:31:46 +01:00
FindSDL2.cmake Merge #1034 2018-02-13 02:02:07 +00:00
FindWavpack.cmake Try to find external GLEW, pnglite and Wavpack 2018-02-12 23:29:45 +01:00
FindWebsockets.cmake Try to find libwebsockets on the host system 2018-02-14 12:55:37 +01:00
FindZLIB.cmake Remove superfluous set(*_FOUND ON) 2018-02-18 02:30:05 +01:00