Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37866515
en ru br
ALT Linux repos
S:2.3.5-alt1

Group :: Networking/Instant messaging
RPM: qca-qt5

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: qca-2.3.0-fixDSA.patch
Download


--- a/plugins/qca-ossl/qca-ossl.cpp.orig	2021-02-05 10:04:54.073661759 +0100
+++ b/plugins/qca-ossl/qca-ossl.cpp	2021-02-05 10:05:57.141861984 +0100
@@ -1617,16 +1617,12 @@
 
 static bool make_dlgroup(const QByteArray &seed, int bits, int counter, DLParams *params)
 {
-    int                                        ret_counter;
     std::unique_ptr<DSA, decltype(DsaDeleter)> dsa(DSA_new(), DsaDeleter);
     if (!dsa)
         return false;
 
     if (DSA_generate_parameters_ex(
-            dsa.get(), bits, (const unsigned char *)seed.data(), seed.size(), &ret_counter, nullptr, nullptr) != 1)
-        return false;
-
-    if (ret_counter != counter)
+            dsa.get(), bits, (const unsigned char *)seed.data(), seed.size(), nullptr, nullptr, nullptr) != 1)
         return false;
 
     const BIGNUM *bnp, *bnq, *bng;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin