mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8235183: Remove the "HACK CODE" in comment
Reviewed-by: jnimeh
This commit is contained in:
parent
ff2f628e33
commit
50714b0fb9
3 changed files with 7 additions and 7 deletions
|
@ -254,10 +254,10 @@ enum NamedGroup {
|
|||
AlgorithmParameters algParams = null;
|
||||
boolean mediator = (keAlgParamSpec != null);
|
||||
|
||||
// HACK CODE
|
||||
//
|
||||
// An EC provider, for example the SunEC provider, may support
|
||||
// AlgorithmParameters but not KeyPairGenerator or KeyAgreement.
|
||||
//
|
||||
// Note: Please be careful if removing this block!
|
||||
if (mediator && (namedGroupSpec == NamedGroupSpec.NAMED_GROUP_ECDHE)) {
|
||||
mediator = JsseJce.isEcAvailable();
|
||||
}
|
||||
|
@ -277,10 +277,10 @@ enum NamedGroup {
|
|||
"No AlgorithmParameters for " + name, exp);
|
||||
}
|
||||
} else {
|
||||
// HACK CODE
|
||||
//
|
||||
// Please remove the following code if the XDH/X25519/X448
|
||||
// AlgorithmParameters algorithms are supported in JDK.
|
||||
//
|
||||
// Note: Please be careful if removing this block!
|
||||
algParams = null;
|
||||
try {
|
||||
KeyAgreement.getInstance(name);
|
||||
|
|
|
@ -381,7 +381,7 @@ final class SSLEngineInputRecord extends InputRecord implements SSLRecord {
|
|||
"Requested to negotiate unsupported SSLv2!");
|
||||
}
|
||||
|
||||
// hack code, the exception is caught in SSLEngineImpl
|
||||
// Note that the exception is caught in SSLEngineImpl
|
||||
// so that SSLv2 error message can be delivered properly.
|
||||
throw new UnsupportedOperationException( // SSLv2Hello
|
||||
"Unsupported SSL v2.0 ClientHello");
|
||||
|
|
|
@ -274,10 +274,10 @@ enum SignatureScheme {
|
|||
Arrays.asList(handshakeSupportedProtocols);
|
||||
|
||||
boolean mediator = true;
|
||||
// HACK CODE
|
||||
//
|
||||
// An EC provider, for example the SunEC provider, may support
|
||||
// AlgorithmParameters but not KeyPairGenerator or Signature.
|
||||
//
|
||||
// Note: Please be careful if removing this block!
|
||||
if ("EC".equals(keyAlgorithm)) {
|
||||
mediator = JsseJce.isEcAvailable();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue