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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:794:    case PACKET_change_cipher_spec:    {    SSL3_DEBUG_MSG("SSL.Connection: CHANGE_CIPHER_SPEC\n");       if( !sizeof(packet->fragment) )    {    send_packet(alert(ALERT_fatal, ALERT_unexpected_message,    "Zero length ChangeCipherSpec fragments not allowed.\n"));    return -1;    } -  int i; -  int err; -  for (i = 0; (i < sizeof(packet->fragment)); i++) +  foreach(packet->fragment;; int c)    { -  err = handle_change_cipher(packet->fragment[i]); +  int err = handle_change_cipher(c);    SSL3_DEBUG_MSG("tried change_cipher: %d\n", err);    if (err)    return err;    }    break;    }    case PACKET_handshake:    {    SSL3_DEBUG_MSG("SSL.Connection: HANDSHAKE\n");