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:36:   protected void create(function(Request:void) callback,    void|int port,    void|string interface,    void|string|Crypto.Sign.State key,    void|string|array(string) certificate,    void|int share)   {    ::create();       portno = port || 443; -  this_program::callback=callback; -  this_program::interface=interface; +  this::callback=callback; +  this::interface=interface;       if( key && certificate )    {    if( stringp(certificate) )    certificate = ({ certificate });    ctx->add_cert( key, certificate, ({"*"}) );    }    else    set_default_keycert();    -  if (!bind(portno, new_connection, this_program::interface, share)) +  if (!bind(portno, new_connection, this::interface, share))    error("Failed to bind port %s%d: %s\n",    interface?interface+":":"", portno, strerror(errno()));   }      void destroy() { close(); }      //! The port accept callback   protected void new_connection()   {    SSL.File fd=accept();