Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:2493: Inside #if constant(Standards.X509)
   CERT_ERROR(Certificates,    LOC_M(0,"No matching keys and certificates found.\n"));    report_error ("TLS port %s: %s", get_url(),    LOC_M(0,"No matching keys and certificates found.\n"));    cert_err_unbind();    cert_failure = 1;    return;    }       if (!bound) { -  Protocol::bind (ignore_eaddrinuse); +  bind (ignore_eaddrinuse);    if (old_cert_failure && bound)    report_notice (LOC_M(64, "TLS port %s opened.\n"), get_url());    if (!bound)    report_notice("Failed to bind port %s.\n", get_url());    }    }   #else    // NB: The TBS Tools.X509 API has been deprecated in Pike 8.0.   #pragma no_deprecation_warnings    void certificates_changed(Variable.Variable|void ignored,
Roxen.git/server/base_server/roxen.pike:2716:    }       SSL.sslfile accept()    {    Stdio.File q = ::accept();    if (q)    return SSL.sslfile (q, ctx);    return 0;    }    + #if constant(SSL.Connection)    protected void bind (void|int ignore_eaddrinuse)    {    // Don't bind if we don't have correct certs. -  +  if (!sizeof(ctx->cert_pairs)) return; +  ::bind (ignore_eaddrinuse); +  } + #else +  protected void bind (void|int ignore_eaddrinuse) +  { +  // Don't bind if we don't have correct certs.    if (!ctx->certificates) return;    ::bind (ignore_eaddrinuse);    } -  + #endif       void create(int pn, string i, void|int ignore_eaddrinuse)    {    ctx->random = Crypto.Random.random_string;       set_up_ssl_variables( this_object() );       filter_preferred_suites();       ::setup(pn, i);