Skip to content
Snippets Groups Projects
Select Git revision
  • ad81d503096b0ce873161056167462448b237e18
  • master default protected
  • devel
  • hruska-feature-clients-api
  • malostik-#5066-deduplicate-idea-ids
  • warden-postgresql-port
  • hruska-feature-#6799-filter-keys
  • hruska-feature-5066-duplicateIdeaID
  • warden-client-3.0-beta3
  • warden-server-3.0-beta3
  • warden-client-2.2-final
  • warden-server-2.2-final
  • warden-client-3.0-beta2
  • warden-server-3.0-beta2
  • warden-client-2.2
  • warden-server-2.2-patch3
  • warden-client-3.0-beta1
  • warden-server-3.0-beta1
  • warden-server-2.2-patch1
  • warden-client-3.0-beta0
  • warden-server-3.0-beta0
  • warden-server-2.2
  • warden-server-2.1-patch1
  • warden-client-2.1
  • warden-server-2.1
  • warden-server-2.1-beta6
  • warden-server-2.1-beta5
  • warden-server-2.1-beta4
28 results

WardenClientConf.pm

  • WardenClientConf.pm 834 B
    #!/usr/bin/perl -w
    #
    # WardenClientConf.pm
    #
    # Copyright (C) 2011-2012 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 $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;