Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:209:    TYPE_FLAG,    LOCALE(77, "If set to Yes, Roxen will attempt to set unique browser "    "ID cookies only upon receiving the first request (and "    "again after some minutes). Thus, if the user doesn't allow "    "the cookie to be set, she won't be bothered with "    "multiple requests."),0, do_set_cookie( o ));   }      protected int hide_if_empty(RequestID id, Variable.Variable var)   { -  return var->query() == ""; +  return !sizeof(var->query());   }      void set_up_ssl_variables( Protocol o )   {    function(DEFVAR) defvar = o->defvar;    -  +  defvar( "ssl_keys", o->CertificateKeyChoiceVariable +  (VAR_NO_DEFAULT, +  LOCALE(0, "SSL/TLS Certificate(s)"), +  LOCALE(0, "<p>The TLS certificate(s) to use.</p>\n"))); +  + #if 1 +  // Old-style SSL Certificate variables. +  // FIXME: Keep these around for at least a few major versions (10 years?).    defvar( "ssl_cert_file",    o->CertificateListVariable    ( ({ "demo_certificate.pem" }), 0,    LOCALE(86, "SSL certificate file(s)"),    LOCALE(87, "<p>The SSL certificate file(s) to use.</p>\n"    "<p>This is a list of certificates, "    "intermediate and root certificates, and "    "corresponding private key files in any order.</p>\n"    "<p>If a path is relative, it will first be "    "searched for relative to %s, " -  "and if not found there relative to %s.</p>\n"))); +  "and if not found there relative to %s.</p>\n")))-> +  set_invisibility_check_callback(hide_if_empty);       defvar( "ssl_key_file",    o->KeyFileVariable    ( "", 0, LOCALE(88, "SSL key file"),    LOCALE(89, "The SSL key file to use. If the path is "    "relative, it will first be searched for "    "relative to %s, and if not found there "    "relative to %s. "    "You do not have to specify a key "    "file, leave this field empty to use the "    "certificate file only. "    "This field is obsolete, since the same setting "    "can be done in <b>SSL certificate file(s)</b>.")))->    set_invisibility_check_callback(hide_if_empty); -  + #endif      #if constant(SSL.Constants.CIPHER_aead)    // NB: This constant was added a few days after get_suites() in Pike 8.0,    // and a single day after get_suites() in the backport to Pike 7.8.       // Pike 8.0 or recent Pike 7.8.    // They have SSL.[Cc]ontext()->get_suites().       // 112 bits is the minimum strength to still retain the    // DES-3 suites, which are required in the TLS standards.