File qca-2.0.3-fixDSA.patch of Package libqca2.9324

Index: qca-2.0.3/plugins/qca-ossl-2.0.0-beta3/qca-ossl.cpp
===================================================================
--- qca-2.0.3.orig/plugins/qca-ossl-2.0.0-beta3/qca-ossl.cpp
+++ qca-2.0.3/plugins/qca-ossl-2.0.0-beta3/qca-ossl.cpp
@@ -1447,12 +1447,10 @@ public:
 
 static bool make_dlgroup(const QByteArray &seed, int bits, int counter, DLParams *params)
 {
-	int ret_counter;
-	DSA *dsa = DSA_generate_parameters(bits, (unsigned char *)seed.data(), seed.size(), &ret_counter, NULL, NULL, NULL);
+	DSA *dsa = DSA_generate_parameters(bits, (unsigned char *)seed.data(), seed.size(), NULL, NULL, NULL, NULL);
 	if(!dsa)
 		return false;
-	if(ret_counter != counter)
-		return false;
+
 	params->p = bn2bi(dsa->p);
 	params->q = bn2bi(dsa->q);
 	params->g = bn2bi(dsa->g);
openSUSE Build Service is sponsored by