JDK 1.4 update
@@ -4089,7 +4089,7 @@ static Hashtable addEarlyKeySharesToClientHello(TlsContext context, TlsClient cl
if (!earlyGroups.contains(offeredGroupElement)
|| clientAgreements.containsKey(offeredGroupElement)
- || !crypto.hasNamedGroup(offeredGroupElement))
+ || !crypto.hasNamedGroup(offeredGroup))
{
continue;
}
@@ -4116,7 +4116,7 @@ else if (NamedGroup.refersToASpecificFiniteField(offeredGroup))
KeyShareEntry clientShare = new KeyShareEntry(offeredGroup, key_exchange);
clientShares.addElement(clientShare);
- clientAgreements.put(offeredGroup, agreement);
+ clientAgreements.put(offeredGroupElement, agreement);
}
}
