pike.git / lib / modules / SSL.pmod / Session.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Session.pike:259:   //! @item @[signature_algorithms]   //! The set of signature algorithm tuples that   //! the client claims to support.   //! @enddl   int select_cipher_suite(array(CertificatePair) certs,    array(int) cipher_suites,    ProtocolVersion version)   {    if (!sizeof(cipher_suites)) return 0;    +  if (!certs || !sizeof(certs)) +  { +  SSL3_DEBUG_MSG("No certificates.\n"); +  return 0; +  } +     SSL3_DEBUG_MSG("Candidate certificates: %O\n", certs);       // Find the set of key exchange and hash algorithms supported by the    // client.    int ke_mask = 0;    int h_max = 0;    foreach(cipher_suites, int suite) {    if (CIPHER_SUITES[suite]) {    ke_mask |= 1 << [int](CIPHER_SUITES[suite][0]);    Crypto.Hash hash =