]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/main.c
Merge pull request #366 from pali/rtnetlink-register
[ppp.git] / pppd / main.c
index 7e4775226d16eb25c64ee89a01fcaa723d257117..b302c08e0659379fd23896e20bdd287d3c7041d9 100644 (file)
 #include "ccp.h"
 #include "ecp.h"
 #include "pathnames.h"
+#include "ppp-crypto.h"
 
 #ifdef PPP_WITH_TDB
 #include "tdb.h"
@@ -294,6 +295,8 @@ main(int argc, char *argv[])
     struct protent *protp;
     char numbuf[16];
 
+    PPP_crypto_init();
+
     strlcpy(path_ipup, PPP_PATH_IPUP, MAXPATHLEN);
     strlcpy(path_ipdown, PPP_PATH_IPDOWN, MAXPATHLEN);
 
@@ -364,6 +367,11 @@ main(int argc, char *argv[])
     if (debug)
        setlogmask(LOG_UPTO(LOG_DEBUG));
 
+    if (show_options) {
+       showopts();
+       die(0);
+    }
+
     /*
      * Check that we are running as root.
      */
@@ -581,6 +589,7 @@ main(int argc, char *argv[])
        }
     }
 
+    PPP_crypto_deinit();
     die(status);
     return 0;
 }