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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:213:      //! List of advertised protocols using using TLS application level   //! protocol negotiation.   array(string(8bit)) advertised_protocols;      //! The maximum amount of data that is sent in each SSL packet by   //! @[sslfile]. A value between 1 and   //! @[SSL.Constants.PACKET_MAX_SIZE].   int packet_max_size = PACKET_MAX_SIZE;    + array(array(int)) signature_algorithms = ({ +  ({ HASH_sha512, SIGNATURE_ecdsa }), +  ({ HASH_sha512, SIGNATURE_dsa }), +  ({ HASH_sha512, SIGNATURE_rsa }), +  ({ HASH_sha384, SIGNATURE_ecdsa }), +  ({ HASH_sha384, SIGNATURE_rsa }), +  ({ HASH_sha256, SIGNATURE_ecdsa }), +  ({ HASH_sha256, SIGNATURE_dsa }), +  ({ HASH_sha256, SIGNATURE_rsa }), +  ({ HASH_sha224, SIGNATURE_ecdsa }), +  ({ HASH_sha224, SIGNATURE_dsa }), +  ({ HASH_sha, SIGNATURE_ecdsa }), +  ({ HASH_sha, SIGNATURE_dsa }), +  ({ HASH_sha, SIGNATURE_rsa }), + }); +    protected int cert_sort_key(CertificatePair cp)   {    array(HashAlgorithm|SignatureAlgorithm) sign_alg = cp->sign_algs[0];    int bits = cp->key->key_size();       // Adjust the bits to be comparable for the different algorithms.    switch(sign_alg[1]) {    case SIGNATURE_rsa:    // The normative size.    break;