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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Session.pike:666:    string(8bit) client_random,    string(8bit) server_random,    ProtocolVersion version)   {    State write_state = State(con);    State read_state = State(con);    array(string) keys = generate_keys(client_random, server_random, version);       if (cipher_spec->mac_algorithm)    { +  SSL3_DEBUG_CRYPT_MSG("MAC algorithm: %O\n", cipher_spec->mac_algorithm);    read_state->mac = cipher_spec->mac_algorithm(keys[0]);    write_state->mac = cipher_spec->mac_algorithm(keys[1]);    }    if (cipher_spec->bulk_cipher_algorithm)    { -  +  SSL3_DEBUG_CRYPT_MSG("Bulk cipher algorithm: %O\n", +  cipher_spec->bulk_cipher_algorithm);    read_state->crypt = cipher_spec->bulk_cipher_algorithm();    read_state->crypt->set_decrypt_key(keys[2]);    write_state->crypt = cipher_spec->bulk_cipher_algorithm();    write_state->crypt->set_encrypt_key(keys[3]);    if (cipher_spec->cipher_type == CIPHER_aead) {    // AEAD algorithms use other iv methods.    read_state->tls_iv = write_state->tls_iv = 0;    read_state->salt = keys[4] || "";    write_state->salt = keys[5] || "";    } else if (cipher_spec->iv_size) {