Skip to content

Commit

Permalink
update getSupportedSSLParameters()
Browse files Browse the repository at this point in the history
  • Loading branch information
sstefonic committed Jul 23, 2024
1 parent 0361ce3 commit 1ead8c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/java/com/wolfssl/provider/jsse/WolfSSLContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,16 @@ protected SSLParameters engineGetSupportedSSLParameters() {
WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO,
"entered engineGetSupportedSSLParameters()");

return WolfSSLParametersHelper.decoupleParams(this.params);
SSLParameters supportedParams =
WolfSSLParametersHelper.decoupleParams(this.params);

/* set cipher suites and protocols to all supported cipher suites and
protocols */
supportedParams.setCipherSuites(WolfSSLUtil.sanitizeSuites(
WolfSSL.getCiphersIana()));
supportedParams.setProtocols(WolfSSLUtil.sanitizeProtocols(
WolfSSL.getProtocols()));
return supportedParams;
}

/**
Expand Down

0 comments on commit 1ead8c8

Please sign in to comment.