From 40640a761f319a14b0c4b8320697a84b54cd8cca Mon Sep 17 00:00:00 2001
From: Martin Nilsson <nilsson@opera.com>
Date: Mon, 1 Sep 2014 15:37:19 +0200
Subject: [PATCH] Subgroup order is calculated in Parameters if left out as an
 argument.

---
 lib/modules/SSL.pmod/Cipher.pmod | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/modules/SSL.pmod/Cipher.pmod b/lib/modules/SSL.pmod/Cipher.pmod
index 05d002eddb..6812ea9cf9 100644
--- a/lib/modules/SSL.pmod/Cipher.pmod
+++ b/lib/modules/SSL.pmod/Cipher.pmod
@@ -780,10 +780,9 @@ class KeyExchangeDHE
     SSL3_DEBUG_MSG("KE_DHE\n");
     Gmp.mpz p = input->get_bignum();
     Gmp.mpz g = input->get_bignum();
-    Gmp.mpz order = [object(Gmp.mpz)]((p-1)/2); // FIXME: Is this correct?
     temp_struct->put_bignum(p);
     temp_struct->put_bignum(g);
-    dh_state = DHKeyExchange(Crypto.DH.Parameters(p, g, order));
+    dh_state = DHKeyExchange(Crypto.DH.Parameters(p, g));
     dh_state->set_other(input->get_bignum());
     temp_struct->put_bignum(dh_state->other);
 
-- 
GitLab