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