diff ui/sslhelp.cpp @ 469:f9b0014cff97

Fix return value of sha256 sum
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 23 Apr 2014 16:33:52 +0000
parents 2e100d3e414a
children 6c4f526a4c5b
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)

http://wald.intevation.org/projects/trustbridge/