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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:73:    return filter(supported_versions, lambda(ProtocolVersion v)    {    return v<client;    });   }      //! List of advertised protocols using using TLS application level   //! protocol negotiation.   array(string(8bit)) advertised_protocols;    + //! Mapping of supported verifier algorithms to hash implementation. + //! + //! @seealso + //! @[Standards.X509.get_algorithms()] + mapping(Standards.ASN1.Types.Identifier:Crypto.Hash) verifier_algorithms + = filter(Standards.X509.get_algorithms(), +  lambda(object o) { +  return !(< + #if constant(Crypto.MD2) +  Crypto.MD2, + #endif +  Crypto.MD5, +  Crypto.SHA1 +  >)[o]; + }); +    //! The maximum amount of data that is sent in each SSL packet by   //! @[File]. A value between 1 and @[Constants.PACKET_MAX_SIZE].   int packet_max_size = PACKET_MAX_SIZE;      //! Lists the supported compression algorithms in order of preference.   //!   //! Defaults to @expr{({ COMPRESSION_null })@} due to SSL attacks that   //! target compression.   array(int) preferred_compressors = ({ COMPRESSION_null });