Mercurial > trustbridge
changeset 469:f9b0014cff97
Fix return value of sha256 sum
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 16:33:52 +0000 |
parents | a53286e5b126 |
children | a166d740cb5a |
files | ui/sslhelp.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/sslhelp.cpp Wed Apr 23 16:21:49 2014 +0000 +++ b/ui/sslhelp.cpp Wed Apr 23 16:33:52 2014 +0000 @@ -26,7 +26,7 @@ { unsigned char output[32]; sha256((unsigned char *)data.constData(), (size_t)data.size(), output, 0); - return QByteArray(data, 32); + return QByteArray((const char *)output, 32); } QByteArray rsaSignSHA256Hash(const QByteArray& hash, pk_context *pk)