Use SHA2-512 to store the core certificate digest in the client
authorMichael Marley <michael@michaelmarley.com>
Sat, 23 May 2015 22:17:04 +0000 (18:17 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Jan 2016 17:03:39 +0000 (18:03 +0100)
commitfe84c08b2970296e66dc1aa48c6196da28fddd96
treebbd1472c4960ea7f0daa64eec874027066a9f34c
parent2abe71097e6804a9cfae9b1aae544b1b04a9e1c2
Use SHA2-512 to store the core certificate digest in the client

Previously, MD5 was used.  Like the core password hashing update,
this implements a versioning system so that the digest will be
automagically upgraded without bugging the user.  If for some
reason the user downgrades again, the client will still work but
the user will be asked to validate the certificate again.

SHA2-256 is more common for storing certificate digests, but in
this case, SHA2-512 was used.  This is because Qt4 does not
implement any hash higher than SHA1 and a SHA2-512 implementation
is already bundled for use with the core password hashing.
src/client/clientauthhandler.cpp
src/client/clientauthhandler.h