Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:2325:    constant default_port = 0;       protected void create()    {    path = "";    port = default_port;    ip = "0.0.0.0";    }   }    - #if constant(SSL.sslfile) + #if constant(SSL.File)      class SSLContext {   #if constant(SSL.Context)    inherit SSL.Context;      #if defined(DEBUG) || defined(SSL3_DEBUG)    SSL.Alert alert_factory(SSL.Connection con, int level, int description,    SSL.Constants.ProtocolVersion version,    string|void debug_message)    {
Roxen.git/server/base_server/roxen.pike:2919:    }   }      class SSLProtocol   //! Base protocol for SSL ports.   //!   //! Exactly like Port, but uses SSL.   {    inherit StartTLSProtocol;    -  SSL.sslfile accept() +  SSL.File accept()    {    Stdio.File q = ::accept();    if (q) { -  SSL.sslfile ssl = SSL.sslfile (q, ctx); +  SSL.File ssl = SSL.File (q, ctx);    if (ssl->accept) ssl->accept();    return ssl;    }    return 0;    }      #if constant(SSL.Connection)    protected void bind (void|int ignore_eaddrinuse)    {    // Don't bind if we don't have correct certs.
Roxen.git/server/base_server/roxen.pike:2987: Inside #if undefined(DEBUG)
   mixed `->( string x )    {    if(!real) realize();    return predef::`->(real, x);    }    };   #endif    foreach( glob( "prot_*.pike", get_dir("protocols") ), string s )    {    sscanf( s, "prot_%s.pike", s ); - #if !constant(SSL.sslfile) + #if !constant(SSL.File)    switch( s )    {    case "https":    case "ftps":    continue;    }   #endif    report_debug( "\b%s \b", s );       catch
Roxen.git/server/base_server/roxen.pike:3009: Inside #if defined(DEBUG)
  #ifdef DEBUG    protocols[ s ] = (program)("protocols/prot_"+s+".pike");   #else    protocols[ s ] = lazy_load( ("protocols/prot_"+s+".pike"),s );   #endif    };    }    foreach( glob("prot_*.pike",get_dir("../local/protocols")||({})), string s )    {    sscanf( s, "prot_%s.pike", s ); - #if !constant(SSL.sslfile) + #if !constant(SSL.File)    switch( s )    {    case "https":    case "ftps":    continue;    }   #endif    report_debug( "\b%s \b", s );    catch {   #ifdef DEBUG
Roxen.git/server/base_server/roxen.pike:6451:       if (!has_value (compat_levels, roxen_ver))    report_debug ("Warning: The current version %s does not exist in "    "roxen.compat_levels.\n", roxen_ver);       add_constant( "Protocol", Protocol );   #ifdef TIMERS    call_out( show_timers, 30 );   #endif    - #if constant(SSL.sslfile) + #if constant(SSL.File)    add_constant( "StartTLSProtocol", StartTLSProtocol );    add_constant( "SSLProtocol", SSLProtocol );   #endif       dump( "etc/modules/Variable.pmod/module.pmod" );    dump( "etc/modules/Variable.pmod/Language.pike" );    dump( "etc/modules/Variable.pmod/Schedule.pike" );       foreach( glob("*.pike", get_dir( "etc/modules/Variable.pmod/"))    -({"Language.pike", "Schedule.pike"}), string f )