/[smecontribs]/rpms/smeserver-openvpn-bridge/contribs7/smeserver-openvpn-bridge-2.0-check_certs.patch
ViewVC logotype

Annotation of /rpms/smeserver-openvpn-bridge/contribs7/smeserver-openvpn-bridge-2.0-check_certs.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Mar 2 23:27:16 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-openvpn-bridge-2_0-43_el4_sme, smeserver-openvpn-bridge-2_0-29_el4_sme, smeserver-openvpn-bridge-2_0-39_el4_sme, smeserver-openvpn-bridge-2_0-48_el4_sme, smeserver-openvpn-bridge-2_0-19_el4_sme, smeserver-openvpn-bridge-2_0-21_el4_sme, smeserver-openvpn-bridge-2_0-33_el4_sme, smeserver-openvpn-bridge-2_0-35_el4_sme, smeserver-openvpn-bridge-2_0-47_el4_sme, smeserver-openvpn-bridge-2_0-18_el4_sme, smeserver-openvpn-bridge-2_0-12_el4_sme, smeserver-openvpn-bridge-2_0-11_el4_sme, smeserver-openvpn-bridge-2_0-27_el4_sme, smeserver-openvpn-bridge-2_0-10_el4_sme, smeserver-openvpn-bridge-2_0-20_el4_sme, smeserver-openvpn-bridge-2_0-23_el4_sme, smeserver-openvpn-bridge-2_0-30_el4_sme, smeserver-openvpn-bridge-2_0-42_el4_sme, smeserver-openvpn-bridge-2_0-41_el4_sme, smeserver-openvpn-bridge-2_0-36_el4_sme, smeserver-openvpn-bridge-2_0-8_el4_sme, smeserver-openvpn-bridge-2_0-9_el4_sme, smeserver-openvpn-bridge-2_0-26_el4_sme, smeserver-openvpn-bridge-2_0-13_el4_sme, smeserver-openvpn-bridge-2_0-17_el4_sme, smeserver-openvpn-bridge-2_0-14_el4_sme, smeserver-openvpn-bridge-2_0-46_el4_sme, smeserver-openvpn-bridge-2_0-40_el4_sme, smeserver-openvpn-bridge-2_0-32_el4_sme, smeserver-openvpn-bridge-2_0-24_el4_sme, smeserver-openvpn-bridge-2_0-38_el4_sme, smeserver-openvpn-bridge-2_0-25_el4_sme, smeserver-openvpn-bridge-2_0-15_el4_sme, smeserver-openvpn-bridge-2_0-16_el4_sme, smeserver-openvpn-bridge-2_0-45_el4_sme, smeserver-openvpn-bridge-2_0-37_el4_sme, smeserver-openvpn-bridge-2_0-34_el4_sme, HEAD
Initial import of smeserver-openvpn-bridge

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm mezzanine_patched_smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm
2     --- smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm 2009-01-16 01:46:11.000000000 +0100
3     +++ mezzanine_patched_smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm 2009-01-16 01:45:49.000000000 +0100
4     @@ -478,23 +478,25 @@
5    
6     sub print_crt_not_ready_warning{
7     my ($fm) = @_;
8     -
9     - if (( -z "$pubdir/cacert.pem") ||
10     - #( -z "$privdir/takey.pem") ||
11     - ( -z "$pubdir/cert.pem") ||
12     - ( -z "$privdir/key.pem") ||
13     - ( -z "$pubdir/cacrl.pem") ||
14     - ( -z "$pubdir/dh.pem")){
15     + # If any of the required files is missing or empty
16     + # Warn the user
17     + if (
18     + (( -z "$pubdir/cacert.pem" ) || ( ! -e "$pubdir/cacert.pem" )) ||
19     + (( -z "$pubdir/cert.pem") || ( ! -e "$pubdir/cert.pem" )) ||
20     + (( -z "$privdir/key.pem") || ( ! -e "$pubdir/key.pem" )) ||
21     + (( -z "$pubdir/cacrl.pem") || ( ! -e "$pubdir/cacrl.pem" )) ||
22     + (( -z "$pubdir/dh.pem") || ( ! -e "$pubdir/dh.pem" ))
23     + ){
24    
25     - return $fm->localise('CRT_CONFIG_ERROR');
26     - }
27     + return $fm->localise('CRT_CONFIG_ERROR');
28     + }
29     return $fm->localise('CRT_CONFIG_OK');
30     }
31    
32     sub print_client_config{
33     my ($fm) = @_;
34     my $q = $fm->{cgi};
35     - my $proto = get_prop('','proto','udp');
36     + my $proto = get_prop('','proto','udp');
37     $proto = 'tcp-client' if ($proto eq 'tcp');
38     my $port = ($proto eq 'udp' ? (get_prop('','UDPPort','1194')):(get_prop('','TCPPort','1194')));
39     my $mtutest = get_prop('','mtuTest','enabled');

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed