Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1607:       string _sprintf()    {    return sprintf("BackgroundProcess(%O, %O)", period, func);    }   }         mapping get_port_options( string key )   //! Get the options for the key 'key'. - //! The intepretation of the options is protocol specific. + //! The interpretation of the options is protocol specific.   {    return (query( "port_options" )[ key ] || ([]));   }      void set_port_options( string key, mapping value )   //! Set the options for the key 'key'. - //! The intepretation of the options is protocol specific. + //! The interpretation of the options is protocol specific.   {    mapping q = query("port_options");    q[ key ] = value;    set( "port_options" , q );    save( );   }      #ifdef DEBUG_URL2CONF   #define URL2CONF_MSG(X...) report_debug (X)   #else
Roxen.git/server/base_server/roxen.pike:2916:    getcwd());    }    }       void create(int pn, string i, void|int ignore_eaddrinuse)    {    ctx->random = Crypto.Random.random_string;       set_up_ssl_variables( this_object() );    +  // NB: setup() calls restore() which initializes the variables +  // created above. +  ::setup(pn, i); +    #if constant(SSL.Constants.PROTOCOL_TLS_MAX)    set_version();   #endif       filter_preferred_suites();    -  ::setup(pn, i); -  +     certificates_changed (0, ignore_eaddrinuse);       // Install the change callbacks here to avoid duplicate calls    // above.    // FIXME: Both variables ought to be updated on save before the    // changed callback is called. Currently you can get warnings    // that the files don't match if you update both variables    // at the same time.    getvar ("ssl_cert_file")->set_changed_callback (certificates_changed);    getvar ("ssl_key_file")->set_changed_callback (certificates_changed);    - #if constant(SSL.ServerConnection) + #if constant(SSL.Constants.CIPHER_aead)    getvar("ssl_key_bits")->set_changed_callback(filter_preferred_suites); -  + #endif + #if constant(SSL.ServerConnection)    getvar("ssl_suite_filter")->set_changed_callback(filter_preferred_suites);   #endif   #if constant(SSL.Constants.PROTOCOL_TLS_MAX)    getvar("ssl_min_version")->set_changed_callback(set_version);   #endif    }       string _sprintf( )    {    return "StartTLSProtocol(" + get_url() + ")";