Blame SOURCES/pptp-1.7.2-pptpsetup-mppe.patch

a0181c
--- pptp-1.7.2/pptpsetup	2009-06-01 15:18:25.000000000 +0100
a0181c
+++ pptp-1.7.2/pptpsetup	2009-06-01 15:19:25.000000000 +0100
a0181c
@@ -43,14 +43,6 @@
a0181c
 sub create {
a0181c
     my $TUNNEL = shift;
a0181c
 
a0181c
-    # if encryption is requested, check for support in kernel and pppd
a0181c
-    if ( $ENCRYPT ) {
a0181c
-        &Check_MPPE_in_kernel
a0181c
-            or die "$0: couldn't find MPPE support in kernel.\n";
a0181c
-        &Check_MPPE_in_pppd
a0181c
-            or die "$0: couldn't find MPPE support in pppd.\n";
a0181c
-    }
a0181c
-
a0181c
     # input validation
a0181c
     ($TUNNEL) = $TUNNEL =~ m{^(\w+)$}
a0181c
       or die "$0: invalid tunnel name.\nTry '$0 --help' for more information.\n";
a0181c
@@ -180,29 +172,6 @@
a0181c
     exit;
a0181c
 }
a0181c
 
a0181c
-### AUXILIAR SUBS ###
a0181c
-
a0181c
-sub Check_MPPE_in_kernel {
a0181c
-    my $command = q/modprobe ppp-compress-18/;
a0181c
-    if (system( $command ) == 0) {
a0181c
-        # no error!
a0181c
-        return 1;
a0181c
-    } else {
a0181c
-        return 0;
a0181c
-    }
a0181c
-}
a0181c
-
a0181c
-sub Check_MPPE_in_pppd {
a0181c
-    my $command = q/strings `which pppd`|grep -i mppe|wc --lines/;
a0181c
-    my $answer  = `$command`;
a0181c
-    if ($answer > 0) {
a0181c
-        # ok!
a0181c
-        return 1;
a0181c
-    } else {
a0181c
-        return 0;
a0181c
-    }
a0181c
-}
a0181c
-
a0181c
 __END__
a0181c
 
a0181c
 =head1 NAME