Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37040318
en ru br
Репозитории ALT

Группа :: Сети/Мгновенные сообщения
Пакет: qca-qt5

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: qca-2.3.0-fixDSA.patch
Скачать


--- 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;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin