firmware-utils: replace md5 code with Alexander Peslyak's implementation
authorRafał Miłecki <rafal@milecki.pl>
Sat, 19 Nov 2016 20:09:53 +0000 (21:09 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 28 Nov 2016 06:52:31 +0000 (07:52 +0100)
commitd94f20d71088076ab4a7ae3fb80ff0bacc5cc5b4
treeb7cd96ec8272588cfac7546e84b157920a5d3fba
parent171f43cf5b5e19f2ca40b816f4447a192e39de2c
firmware-utils: replace md5 code with Alexander Peslyak's implementation

Our current implementation is pretty old and uses some pre-standard/old
ANSI C style that triggers warnings like:
warning: call to function 'MD5_Init' without a real prototype [-Wunprototyped-calls]

This is caused by declarations specified in a following way:
src/md5.h:60:6: note: 'MD5_Init' was declared here
 void MD5_Init ();

Having these warnings makes it harded to notice real problems. We could
try hiding them but it makes more sense to just use a cleaner code.
Another tiny gain from this switch is slightly reduced binary size, on
x86_64 tplink-safeloader's size 48104 became 48003.

The new code is public domain, uses "heavily cut-down BSD license".

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
src/md5.c
src/md5.h