[PATCH 1 of 3] Fix return value of sha256 sum

Wald Commits scm-commit at wald.intevation.org
Wed Apr 23 18:35:35 CEST 2014


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398270832 0
# Node ID f9b0014cff9773841d5e05f62fa677c767204aab
# Parent  a53286e5b12692cde581f783617fc299fc4f5563
Fix return value of sha256 sum

diff -r a53286e5b126 -r f9b0014cff97 ui/sslhelp.cpp
--- 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)


More information about the Trustbridge-commits mailing list