Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 948975 Details for
Bug 1123356
Unable to define single cipher using JSSE syntax
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix for the issue
bz-1123356.patch (text/plain), 1.97 KB, created by
Emmanuel Hugonnet (ehsavoie)
on 2014-10-21 14:21:29 UTC
(
hide
)
Description:
Fix for the issue
Filename:
MIME Type:
Creator:
Emmanuel Hugonnet (ehsavoie)
Created:
2014-10-21 14:21:29 UTC
Size:
1.97 KB
patch
obsolete
>Index: src/main/java/org/apache/tomcat/util/net/jsse/JSSEUtils.java >=================================================================== >--- src/main/java/org/apache/tomcat/util/net/jsse/JSSEUtils.java (révision 2526) >+++ src/main/java/org/apache/tomcat/util/net/jsse/JSSEUtils.java (copie de travail) >@@ -40,17 +40,17 @@ > Set<String> result = new LinkedHashSet<String>(); > if (cipherSuites.length == 1) { > List<String> enabledCiphers = OpenSSLCipherConfigurationParser.parseExpression(cipherSuites[0]); >- for (String enabledCipher : enabledCiphers) { >- if (supportedCiphers.contains(enabledCipher)) { >- result.add(enabledCipher); >+ if (enabledCiphers.isEmpty()) { >+ result.addAll(filter(Arrays.asList(cipherSuites), supportedCiphers)); >+ } else { >+ for (String enabledCipher : enabledCiphers) { >+ if (supportedCiphers.contains(enabledCipher)) { >+ result.add(enabledCipher); >+ } > } > } > } else { >- for (String enabledCipher : cipherSuites) { >- if (supportedCiphers.contains(enabledCipher)) { >- result.add(enabledCipher); >- } >- } >+ result.addAll(filter(Arrays.asList(cipherSuites), supportedCiphers)); > } > if (!result.isEmpty()) { > StringBuilder builder = new StringBuilder(result.size() * 16); >@@ -62,4 +62,14 @@ > } > return result.toArray(new String[result.size()]); > } >+ >+ private static Set<String> filter(final List<String> enabledCiphers, final Set<String> supportedCiphers) { >+ Set<String> result = new LinkedHashSet<String>(); >+ for (String enabledCipher : enabledCiphers) { >+ if (supportedCiphers.contains(enabledCipher)) { >+ result.add(enabledCipher); >+ } >+ } >+ return result; >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1123356
: 948975