Changeset 61a834efe1547debbe686651d648938d6ea24eff

Show
Ignore:
Timestamp:
03/02/08 03:13:41 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204427621 +0000
git-parent:

[601028a0cf532695cb9ad0c413614254754dcf16]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204427621 +0000
Message:

require SSL to be explicitly turned on

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_listener.c

    r06f58e6 r61a834e  
    282282    int backlog; 
    283283    eventer_func_t f; 
     284    noit_conf_boolean ssl; 
    284285    noit_hash_table *sslconfig, *config; 
    285286 
     
    316317      backlog = 5; 
    317318 
     319    if(!noit_conf_get_boolean(listener_configs[i], 
     320                              "ancestor-or-self::node()/@ssl", &ssl)) 
     321     ssl = noit_false; 
     322 
    318323    sslconfig = noit_conf_get_hash(listener_configs[i], "sslconfig"); 
    319324    config = noit_conf_get_hash(listener_configs[i], "config"); 
    320325 
    321326    noit_listener(address, port, SOCK_STREAM, backlog, 
    322                   sslconfig, config, f, NULL); 
     327                  ssl ? sslconfig : NULL, config, f, NULL); 
    323328  } 
    324329}