pike.git / lib / modules / Protocols.pmod / HTTP.pmod / Server.pmod / SSLPort.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/SSLPort.pike:95: Inside #if constant(SSL.Cipher.CipherAlgorithm)
      // ---- Remove this?       private Crypto.Sign tmp_key;    private array(string) tmp_cert;       //! @deprecated add_cert    __deprecated__ void set_key(string skey)    {    tmp_key = Standards.PKCS.RSA.parse_private_key(skey) || -  Standards.PKCS.DSA.parse_private_key(skey); +  Standards.PKCS.DSA.parse_private_key(skey) || + #if constant(Crypto.ECC.Curve) +  Standards.PKCS.ECDSA.parse_private_key(skey) || + #endif +  0;    if( tmp_key && tmp_cert )    add_cert( tmp_key, tmp_cert );    }       //! @deprecated add_cert    __deprecated__ void set_certificate(string|array(string) certificate)    {    if(arrayp(certificate))    tmp_cert = [array(string)]certificate;    else