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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:115:   {    handshake_messages->add(data);   }      Packet handshake_packet(int(8bit) type,    string(8bit)|Buffer|object(Stdio.Buffer) data)   {   #ifdef SSL3_PROFILING    addRecord(type,1);   #endif -  string(8bit) str; -  if(stringp(data)) -  str = [string(8bit)]data; -  else -  str = (string(8bit))data; -  str = sprintf("%1c%3H", type, str); +  string(8bit) str = sprintf("%1c%3H", type, (string(8bit))data);    add_handshake_message(str);    -  /* Perhaps one need to split large packages? */ -  Packet packet = Packet(version, PACKET_handshake, str); -  return packet; +  /* FIXME: One need to split large packages. */ +  return Packet(version, PACKET_handshake, str);   }      Packet change_cipher_packet()   {    expect_change_cipher++;    return Packet(version, PACKET_change_cipher_spec, "\001");   }      string(8bit) hash_messages(string(8bit) sender, int|void len)   {