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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:214:   //! 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 = ({ + #if constant(Crypto.SHA512) + #if constant(Crypto.ECC.Curve)    ({ HASH_sha512, SIGNATURE_ecdsa }), -  + #endif    ({ HASH_sha512, SIGNATURE_dsa }),    ({ HASH_sha512, SIGNATURE_rsa }), -  + #endif + #if constant(Crypto.SHA384) + #if constant(Crypto.ECC.Curve)    ({ HASH_sha384, SIGNATURE_ecdsa }), -  + #endif    ({ HASH_sha384, SIGNATURE_rsa }), -  + #endif + #if constant(Crypto.ECC.Curve)    ({ HASH_sha256, SIGNATURE_ecdsa }), -  + #endif    ({ HASH_sha256, SIGNATURE_dsa }),    ({ HASH_sha256, SIGNATURE_rsa }), -  + #if constant(Crypto.SHA224) + #if constant(Crypto.ECC.Curve)    ({ HASH_sha224, SIGNATURE_ecdsa }), -  + #endif    ({ HASH_sha224, SIGNATURE_dsa }), -  + #endif + #if constant(Crypto.ECC.Curve)    ({ HASH_sha, SIGNATURE_ecdsa }), -  + #endif    ({ 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.