Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

Method SSL.Context()->sort_suites()


Method sort_suites

array(int) sort_suites(array(int) suites)

Description

Sort a set of cipher suites according to our preferences.

Returns

Returns the array sorted with the most preferrable (aka "best") cipher suite first.

Note

The original array (suites) is modified destructively, but is not the same array as the result.