Make sure namedGroups available pre-1.2
@@ -171,8 +171,6 @@ protected CertificateStatusRequest getCertificateStatusRequest()
ContextData contextData = manager.getContextData();
ProtocolVersion[] activeProtocolVersions = getProtocolVersions();
- jsseSecurityParameters.namedGroups = contextData.getNamedGroups(sslParameters, activeProtocolVersions);
-
List<SignatureSchemeInfo> signatureSchemes = contextData.getActiveCertsSignatureSchemes(sslParameters,
activeProtocolVersions, jsseSecurityParameters.namedGroups);
@@ -396,6 +394,17 @@ public void notifyAlertReceived(short alertLevel, short alertDescription)
}
}
+ @Override
+ public void notifyHandshakeBeginning() throws IOException
+ {
+ super.notifyHandshakeBeginning();
+
+ ContextData contextData = manager.getContextData();
+ ProtocolVersion[] activeProtocolVersions = getProtocolVersions();
+
+ jsseSecurityParameters.namedGroups = contextData.getNamedGroups(sslParameters, activeProtocolVersions);
+ }
+
@Override
public synchronized void notifyHandshakeComplete() throws IOException
{
