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:39: Inside #if constant(SSL.Cipher.CipherAlgorithm)
   callback=_callback;    interface=_interface;       port=MySSLPort();    port->set_default_keycert();    if(key)    port->set_key(key);    if(certificate)    port->set_certificate(certificate);    -  if (!port->bind(portno,new_connection,interface)) +  if (!port->bind(portno,new_connection,[string]interface))    error("HTTP.Server.SSLPort: failed to bind port %s%d: %s\n",    interface?interface+":":"",    portno,strerror(port->errno()));   }      //! Closes the HTTP port.   void close()   {    destruct(port);    port=0;
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/SSLPort.pike:135: Inside #if constant(SSL.Cipher.CipherAlgorithm) and #if 0
   rsa->set_public_key(n, e);    rsa->set_private_key(d);   #else /* !0 */    // FIXME: Is this correct?    rsa = Standards.PKCS.RSA.parse_private_key(skey);   #endif /* 0 */       }       //! -  void set_certificate(string|array certificate) +  void set_certificate(string|array(string) certificate)    {    if(arrayp(certificate)) -  certificates = certificate; +  certificates = [array(string)]certificate;    else -  certificates = ({ certificate }); +  certificates = ({ [string]certificate });    }       void create()    {    sslport::create();    random = Crypto.Random.random_string;    }      }      #endif