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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:140:    Crypto.SHA1.hash(handshake_messages), 12);    } else if(version >= PROTOCOL_TLS_1_2) {    return session->cipher_spec->prf(session->master_secret, sender,    session->cipher_spec->hash->hash(handshake_messages), 12);    }   }      Packet certificate_packet(array(string(8bit)) certificates)   {    ADT.struct struct = ADT.struct(); -  int len = 0; -  -  if(certificates && sizeof(certificates)) -  len = `+( @ Array.map(certificates, sizeof)); -  // SSL3_DEBUG_MSG("SSL.Connection: certificate_message size %d\n", len); -  struct->put_uint(len + 3 * sizeof(certificates), 3); -  foreach(certificates, string(8bit) cert) -  struct->put_var_string(cert, 3); -  +  struct->put_var_string_array(certificates, 3, 3);    return handshake_packet(HANDSHAKE_certificate, struct->pop_data());   }      Packet heartbeat_packet(string(8bit) s)   {    Packet packet = Packet();    packet->content_type = PACKET_heartbeat;    packet->fragment = s;    return packet;   }