ddnet/src/test
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
..
aio.cpp Add manual locking to ASYNCIO for transacted writes 2017-11-27 01:04:55 +01:00
fs.cpp Add CTestInfo class, add test for create-close-remove process 2017-10-23 00:13:53 +02:00
git_revision.cpp Regenerate version file on git changes 2018-03-01 16:50:29 +01:00
hash.cpp Use more secure hash function for map downloads 2018-06-24 17:04:50 +02:00
jobs.cpp Add a couple of tests for CJobPool 2017-11-24 10:33:42 +01:00
json.cpp Add a way to call for external moderator help 2018-06-19 23:27:35 +02:00
mapbugs.cpp Also add a console command to enable map compatibility mode 2018-05-01 12:38:33 +02:00
name_ban.cpp Add string and nameban tests with Unicode characters 2018-03-14 14:20:15 +01:00
str.cpp Add LATIN SMALL LETTER L confusable 2018-03-20 21:11:44 +01:00
strip_path_and_extension.cpp Add testing infrastructure for teehistorian 2017-09-28 02:03:30 +02:00
teehistorian.cpp Use more secure hash function for map downloads 2018-06-24 17:04:50 +02:00
test.cpp Call net_init in tests 2017-11-24 10:51:46 +01:00
test.h Add CTestInfo class, add test for create-close-remove process 2017-10-23 00:13:53 +02:00
thread.cpp Add a missing call to lock_wait in test function 2018-01-05 16:06:24 +01:00
unix.cpp Add very basic test for Unix sockets 2017-12-20 16:56:44 +01:00