Skip to content

Commit

Permalink
get SSLContext from ClientEndpointConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
masuda authored and masuda committed Feb 13, 2024
1 parent f72b2ef commit 7761d77
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public XnioSsl getSsl(XnioWorker worker, Endpoint endpoint, ClientEndpointConfig
}
//look for some SSL config
SSLContext sslContext = (SSLContext) cec.getUserProperties().get(SSL_CONTEXT);
if (sslContext == null) {
sslContext = cec.getSSLContext();
}

if (sslContext != null) {
return new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, sslContext);
Expand Down

0 comments on commit 7761d77

Please sign in to comment.