Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:2318:    } while (0)      #if constant(SSL.Constants.PROTOCOL_TLS_MAX)    protected void set_version(SSLContext|void ctx)    {    if (!ctx) ctx = this_program::ctx;    ctx->min_version = query("ssl_min_version");    }   #endif    -  protected void filter_preferred_suites(SSLContext|void ctx) +  protected void filter_preferred_suites(Variable.Variable|void ignored, +  SSLContext|void ctx)    {    if (!ctx) ctx = this_program::ctx;   #if constant(SSL.ServerConnection)    int mode = query("ssl_suite_filter");    int bits = query("ssl_key_bits");       /* Suite filter encoding:    *    * Bit Mask Meaning    * 0 1 Strict suite B
Roxen.git/server/base_server/roxen.pike:2516:    cert_err_unbind();    cert_failure = 1;    return;    }       // FIXME: Only do this if there are certs loaded?    // We must reset the set of certificates.    SSLContext ctx = SSLContext();    ctx->random = Crypto.Random.random_string;    set_version(ctx); -  filter_preferred_suites(ctx); +  filter_preferred_suites(UNDEFINED, ctx);       foreach(keypairs, int keypair_id) {    array(Crypto.Sign.State|array(string)) keypair =    CertDB.get_keypair(keypair_id);    if (!keypair) continue;       [Crypto.Sign.State private_key, array(string) certs] = keypair;    ctx->add_cert(private_key, certs, ({ name, "*" }));    }   
Roxen.git/server/base_server/roxen.pike:2848:    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(ctx);   #endif    -  filter_preferred_suites(ctx); +  filter_preferred_suites(UNDEFINED, ctx);       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_certs")->set_changed_callback(certificates_changed);