Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370137

Summary: SslContextFactory does not respect order for [included|excluded]Protocols() and [included|excluded]CipherSuites()
Product: [RT] Jetty Reporter: Simone Bordet <simone.bordet>
Component: serverAssignee: Simone Bordet <simone.bordet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.6.0   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Simone Bordet CLA 2012-01-30 10:30:48 EST
When setting sslContextFactory.setIncludedProtocols("TLSv1", "TLSv1.1"), the order is important because it determines what version the client will use in the ClientHello SSL message.
Currently, included protocols are stored in a HashSet, thereby losing ordering.
Comment 1 Simone Bordet CLA 2012-02-06 03:45:18 EST
Fixed by using LinkedHashSets where relevant.
Comment 2 Simone Bordet CLA 2012-07-18 13:07:48 EDT
*** Bug 385424 has been marked as a duplicate of this bug. ***