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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:102: Inside #if defined(SSL3_PROFILING)
  #ifdef SSL3_PROFILING   System.Timer timer = System.Timer();   void addRecord(int t,int s) {    Stdio.stdout.write("time: %.6f sender: %d type: %s\n", timer->get(), s,    fmt_constant(t, "HANDSHAKE"));   }   #endif      string(8bit) handshake_messages;    - Packet handshake_packet(int(8bit) type, string data) + Packet handshake_packet(int(8bit) type, string(8bit) data)   {   #ifdef SSL3_PROFILING    addRecord(type,1);   #endif    /* Perhaps one need to split large packages? */    Packet packet = Packet(version);    packet->content_type = PACKET_handshake; -  packet->fragment = sprintf("%1c%3H", type, [string(8bit)]data); +  packet->fragment = sprintf("%1c%3H", type, data);    handshake_messages += packet->fragment;    return packet;   }      Packet change_cipher_packet()   {    Packet packet = Packet(version);    packet->content_type = PACKET_change_cipher_spec;    packet->fragment = "\001";    return packet;