Skip to content

Commit

Permalink
Merge pull request #1553 from ropalka/UNDERTOW-2345
Browse files Browse the repository at this point in the history
[UNDERTOW-2345] Use SSLContext from ClientEndpointConfig when provided
  • Loading branch information
ropalka authored Feb 16, 2024
2 parents 0ec0746 + 6fab77b commit 93d1549
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 93d1549

Please sign in to comment.