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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Session.pike:415:    break;   #endif    default:    error("set_cipher_suite: Unsupported key exchange method: %d\n",    ke_method);    break;    }       cipher_spec = [object(Cipher.CipherSpec)]res[1];   #ifdef SSL3_DEBUG -  werror("SSL.session: cipher_spec %O\n", +  werror("SSL.Session: cipher_spec %O\n",    mkmapping(indices(cipher_spec), values(cipher_spec)));   #endif    return 1;   }      //! Sets the compression method. Currently only @[COMPRESSION_null] is   //! supported.   void set_compression_method(int compr)   {    switch(compr) {
pike.git/lib/modules/SSL.pmod/Session.pike:587:   #endif       return keys;   }      //! Computes a new set of encryption states, derived from the   //! client_random, server_random and master_secret strings.   //!   //! @returns   //! @array - //! @elem SSL.state read_state + //! @elem SSL.State read_state   //! Read state - //! @elem SSL.state write_state + //! @elem SSL.State write_state   //! Write state   //! @endarray   array(State) new_server_states(.Connection con,    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);
pike.git/lib/modules/SSL.pmod/Session.pike:658:    break;    }    return ({ read_state, write_state });   }      //! Computes a new set of encryption states, derived from the   //! client_random, server_random and master_secret strings.   //!   //! @returns   //! @array - //! @elem SSL.state read_state + //! @elem SSL.State read_state   //! Read state - //! @elem SSL.state write_state + //! @elem SSL.State write_state   //! Write state   //! @endarray   array(State) new_client_states(.Connection con,    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);