Method SSL.Session()->select_cipher_suite()


Method select_cipher_suite

int select_cipher_suite(array(CertificatePair) certs, array(int) cipher_suites, ProtocolVersion version)

Description

Selects an apropriate certificate, authentication method and cipher suite for the parameters provided by the client.

Parameter certs

The list of CertificatePairs that are applicable to the server_name of this session.

Parameter cipher_suites

The set of cipher suites that the client and server have in common.

Parameter version

The SSL protocol version to use.

Typical client extensions that also are used:

signature_algorithms

The set of signature algorithm tuples that the client claims to support.