]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/main.c
Merge pull request #365 from enaess/ppp-options
[ppp.git] / pppd / main.c
index 2eec96641696273fe1eb65cce9a683539108cd69..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);
 
@@ -586,6 +589,7 @@ main(int argc, char *argv[])
        }
     }
 
+    PPP_crypto_deinit();
     die(status);
     return 0;
 }