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:73: Inside #if constant(SSL.Cipher.CipherAlgorithm)
  //!   class MySSLPort   {       inherit SSL.sslport;       //!    void set_default_keycert()    {    rsa = Crypto.RSA(); -  rsa->generate_key( 4096, random_string ); +  rsa->generate_key( 4096 );    -  array attrs = ({ -  ([ "organizationName" : Standards.ASN1.Types.PrintableString("Pike TLS server") ]), -  ([ "commonName" : Standards.ASN1.Types.PrintableString("*") ]), -  }); +  mapping attrs = ([ +  "organizationName" : "Pike TLS server", +  "commonName" : "*", +  ]);       certificates = ({    Standards.X509.make_selfsigned_certificate(rsa, 3600*24*365, attrs)    });    }       //!    void set_key(string skey)    {    rsa = Standards.PKCS.RSA.parse_private_key(skey);