Skip to content
Snippets Groups Projects
Select Git revision
  • 8d582973286e41684b4b5520c85586424091ee16
  • zig default
  • master
  • zig-threaded
  • openat
  • chdir
  • clear
  • compll
  • v1.18.1
  • v2.2.2
  • v1.18
  • v2.2.1
  • v2.2
  • v1.17
  • v2.1.2
  • v2.1.1
  • v2.1
  • v2.0.1
  • v2.0
  • v2.0-beta3
  • v2.0-beta2
  • v2.0-beta1
  • v1.16
  • v1.15.1
  • v1.15
  • v1.14.2
  • v1.14.1
  • v1.14
28 results

browser.c

Blame
  • WardenClientConf.pm 864 B
    #!/usr/bin/perl -w
    #
    # WardenClientConf.pm
    #
    # Copyright (C) 2011-2013 Cesnet z.s.p.o
    #
    # Use of this source is governed by a BSD-style license, see LICENSE file.  
    
    package WardenClientConf;
    
    use strict;
    
    # preset of default variables
    our $URI = undef;
    our $SSL_KEY_FILE = undef;
    our $SSL_CERT_FILE = undef;
    our $SSL_CA_FILE = undef;
    our $MAX_RCV_EVENTS_LIMIT = undef;
    our $LOG_STDERR = 1;
    our $LOG_SYSLOG = 0;
    our $LOG_SYSLOG_FACILITY = "local7";
    our $LOG_VERBOSE = 0;
    our $CONNECTION_TIMEOUT = 60;
    
    
    our $VERSION = "2.2";
    
    sub loadConf
    {  
      my $conf_file = shift;
    
      # load configuration variables set by user
      unless (do $conf_file) {
        die("Errors in config file '$conf_file': $@") if $@;
        die("Can't read config file '$conf_file': $!") unless defined $_;
        # if $_ defined, it's retvalue of last statement of conf, for which we don't care
      }
    }
    
    1;