]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/main.c
Create a new API to abstract the crypto functions used by pppd.
[ppp.git] / pppd / main.c
index 7e4775226d16eb25c64ee89a01fcaa723d257117..8d5f32bb6efc8d55f121272900d527f76cc08427 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);
 
@@ -581,6 +584,7 @@ main(int argc, char *argv[])
        }
     }
 
+    PPP_crypto_deinit();
     die(status);
     return 0;
 }