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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Session.pike:448:    ke_method);    break;    }       cipher_spec = [object(Cipher.CipherSpec)]res[1];    SSL3_DEBUG_MSG("SSL.Session: cipher_spec %O\n",    mkmapping(indices(cipher_spec), values(cipher_spec)));    return 1;   }    - //! Sets the compression method. Currently only @[COMPRESSION_null] is - //! supported. + //! Sets the compression method. Currently only @[COMPRESSION_null] + //! and @[COMPRESSION_deflate] are supported.   void set_compression_method(int compr)   { -  switch(compr) { -  case COMPRESSION_null: -  break; -  case COMPRESSION_deflate: -  break; -  default: +  if( !(< COMPRESSION_null, COMPRESSION_deflate >)[ compr ] )    error( "Method not supported\n" ); -  } +     compression_algorithm = compr;   }      protected string(8bit) generate_key_block(string(8bit) client_random,    string(8bit) server_random,    ProtocolVersion version)   {    int required = 2 * (    cipher_spec->is_exportable ?    (5 + cipher_spec->hash_size)