Closed Bug 1349278 Opened 8 years ago Closed 8 years ago

SSL cipher enumeration

Categories

(JSS Graveyard :: Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edewata, Assigned: edewata)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20170316213829 Steps to reproduce: Bug #118646 added SSLSocket.getImplementedCipherSuites() which returns cipher IDs. However, currently applications are still responsible for the conversion between cipher IDs and human-readable strings, causing duplicate effort and maintenance issue. For example, see the cipherMap in the following files: * https://github.com/dogtagpki/tomcatjss/blob/master/src/org/apache/tomcat/util/net/jss/JSSSocketFactory.java * https://github.com/dogtagpki/tomcatjss/blob/master/src/org/apache/tomcat/util/net/jss/JSSSocketFactory.java Expected results: JSS should provide an enumeration class that contains all known SSL ciphers and provide a mechanism to convert between cipher ID and enumeration constant. The enumeration class itself will provide a built-in mechanism to convert between enumeration constant and human-readable string.
The cipher constants in SSLSocket have been copied and converted into SSLCipher enumeration. The enumeration provides a mechanism to convert between cipher ID and cipher constant, also a flag to indicate whether it is an ECC cipher.
Attachment #8849637 - Flags: review?(emaldona)
Assignee: glenbeasley → edewata
Target Milestone: --- → 4.4.1
The new patch is identical. I only added the bug URL into the patch description.
Attachment #8849637 - Attachment is obsolete: true
Attachment #8849637 - Flags: review?(emaldona)
Attachment #8849655 - Flags: review?(emaldona)
Comment on attachment 8849655 [details] [diff] [review] 0001-Added-SSLCipher-enumeration.patch Review of attachment 8849655 [details] [diff] [review]: ----------------------------------------------------------------- This is a subset of what NSS has but I think that's fine. JSS does not yet support all of the NSS supported cipher suites and that's what Bug 1321594 is for.
Attachment #8849655 - Flags: review+
Attachment #8849655 - Flags: review?(emaldona) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: