Branch: Tag:

2014-03-28

2014-03-28 20:27:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP.Server.SSLPort: Support ECDSA certs.

set_key() now knows about ECDSA private keys.

102: Inside #if constant(SSL.Cipher.CipherAlgorithm)
   __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 );    }