F-5273: remove no-op endpoint identification block from DtlsClientEngine example
parent
cc5ad12a7c
commit
1675ad794d
|
|
@ -37,7 +37,6 @@ import javax.net.ssl.SSLEngine;
|
|||
import javax.net.ssl.SSLEngineResult;
|
||||
import javax.net.ssl.SSLEngineResult.HandshakeStatus;
|
||||
import javax.net.ssl.SSLException;
|
||||
import javax.net.ssl.SSLParameters;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import javax.net.ssl.TrustManagerFactory;
|
||||
|
||||
|
|
@ -274,15 +273,6 @@ public class DtlsClientEngine {
|
|||
engine = ctx.createSSLEngine(host, port);
|
||||
engine.setUseClientMode(true);
|
||||
|
||||
/* Enable endpoint identification if available */
|
||||
try {
|
||||
SSLParameters params = engine.getSSLParameters();
|
||||
engine.setSSLParameters(params);
|
||||
} catch (Exception e) {
|
||||
System.out.println(
|
||||
"DEBUG: Exception setting SSL parameters: " + e.getMessage());
|
||||
}
|
||||
|
||||
System.out.println("DTLS 1.3 Client Engine created");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue