openvpn: Clean up DH download code.
authorErik Kapfer <erik.kapfer@ipfire.org>
Thu, 12 Jun 2014 15:36:57 +0000 (17:36 +0200)
committerErik Kapfer <erik.kapfer@ipfire.org>
Thu, 12 Jun 2014 15:36:57 +0000 (17:36 +0200)
html/cgi-bin/ovpnmain.cgi

index 45c2f6c..b2ce05e 100644 (file)
@@ -1519,17 +1519,6 @@ END
        exit(0);
     }
 
-###
-### Download Diffie-Hellman parameter
-###
-}elsif ($cgiparams{'ACTION'} eq $Lang::tr{'download dh parameter'}) {
-    if ( -f "${General::swroot}/ovpn/ca/dh1024.pem" ) {
-       print "Content-Type: application/octet-stream\r\n";
-       print "Content-Disposition: filename=dh1024.pem\r\n\r\n";
-       print `/usr/bin/openssl dhparam -in ${General::swroot}/ovpn/ca/dh1024.pem`;
-       exit(0);
-    }
-
 ###
 ### Download tls-auth key
 ###