Skip to content

Commit

Permalink
OpenSSL engine options should also be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Nov 17, 2023
1 parent de864a8 commit 8787b9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/asciidoc/net.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ Java TLS supports ALPN (Java 8 with the most recent versions).

OpenSSL also supports (native) ALPN.

OpenSSL requires to configure {@link io.vertx.core.net.TCPSSLOptions#setOpenSslEngineOptions(OpenSSLEngineOptions)}
OpenSSL requires to configure {@link io.vertx.core.net.TCPSSLOptions#setSslEngineOptions(SSLEngineOptions)}
and use http://netty.io/wiki/forked-tomcat-native.html[netty-tcnative] jar on the classpath. Using tcnative may require
OpenSSL to be installed on your OS depending on the tcnative implementation.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, TCPSSLO
}
break;
case "openSslEngineOptions":
if (member.getValue() instanceof JsonObject) {
obj.setOpenSslEngineOptions(new io.vertx.core.net.OpenSSLEngineOptions((io.vertx.core.json.JsonObject)member.getValue()));
}
break;
case "enabledSecureTransportProtocols":
if (member.getValue() instanceof JsonArray) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/examples/NetExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public void exampleSSLEngine(Vertx vertx, JksOptions keyStoreOptions) {
options = new NetServerOptions().
setSsl(true).
setKeyCertOptions(keyStoreOptions).
setOpenSslEngineOptions(new OpenSSLEngineOptions());
setSslEngineOptions(new OpenSSLEngineOptions());
}

public void example46(Vertx vertx, JksOptions keyStoreOptions) {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/vertx/core/http/HttpTLSTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ TLSTest run(boolean shouldPass) {
options.addCrlPath("tls/root-ca/crl.pem");
}
if (clientOpenSSL) {
options.setOpenSslEngineOptions(new OpenSSLEngineOptions());
options.setSslEngineOptions(new OpenSSLEngineOptions());
} else {
options.setSslEngineOptions(new JdkSSLEngineOptions());
}
Expand Down Expand Up @@ -1217,7 +1217,7 @@ TLSTest run(boolean shouldPass) {
serverOptions.addCrlPath("tls/root-ca/crl.pem");
}
if (serverOpenSSL) {
serverOptions.setOpenSslEngineOptions(new OpenSSLEngineOptions());
serverOptions.setSslEngineOptions(new OpenSSLEngineOptions());
}
if (serverUsesAlpn == Boolean.TRUE) {
serverOptions.setUseAlpn(serverUsesAlpn);
Expand Down

0 comments on commit 8787b9f

Please sign in to comment.