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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:256:    int now = gethrtime();    hb_msg->add(heartbeat_encode->crypt(sprintf("%8c%8c", now, 0)));    // No padding.    return heartbeat_packet(hb_msg);   }      // Verify that a certificate chain is acceptable   //   int verify_certificate_chain(array(string) certs)   { -  // Do we need to verify the certificate chain? -  if(!context->verify_certificates) -  return 1; -  +     // If we're not requiring the certificate, and we don't provide one,    // that should be okay.    if((context->auth_level < AUTHLEVEL_require) && !sizeof(certs))    return 1;       // A lack of certificates when we reqiure and must verify the    // certificates is probably a failure.    if(!sizeof(certs))    return 0;