X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=b302c08e0659379fd23896e20bdd287d3c7041d9;hb=35198adc7f3c1f0c1e3437f983e7f3ac96477997;hp=7e4775226d16eb25c64ee89a01fcaa723d257117;hpb=66a8c74c3f73d7480a09923a225b56b8829ae790;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 7e47752..b302c08 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -109,6 +109,7 @@ #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; }