QCryptographicHash: clear the result in QCH::reset() when using OpenSSL

OpenSSL implementation did not clear the previous result when
calling QCH::reset(). This could lead to not generating new hashes.

Pick-to: 6.5
Change-Id: Ic83e6382038a2f8808af950b88e57316b90ef2bc
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Jan Grulich 2022-12-14 08:35:56 +01:00 committed by Mårten Nordheim
parent ce20b81070
commit 1fe74c3bd3

View File

@ -560,8 +560,8 @@ void QCryptographicHashPrivate::reset() noexcept
break;
#endif
}
result.clear();
#endif // !QT_CONFIG(opensslv30)
result.clear();
}
#if QT_DEPRECATED_SINCE(6, 4)