X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fpasswordfd.c;h=c1f782e0c947e3fed686b26490ed2f965aced1de;hb=efb2667c252985004598625d357d3f4db7418964;hp=c3f9793e41a01b141da91d7a5370e04dec51af83;hpb=5ece6e68baaf9fdbd6e73daa7b27335f8852d85b;p=ppp.git diff --git a/pppd/plugins/passwordfd.c b/pppd/plugins/passwordfd.c index c3f9793..c1f782e 100644 --- a/pppd/plugins/passwordfd.c +++ b/pppd/plugins/passwordfd.c @@ -11,15 +11,23 @@ #include #include #include +#include +#include +#include +#include -#include "pppd.h" +#include +#include +#include +#include +#include -char pppd_version[] = VERSION; +char pppd_version[] = PPPD_VERSION; static int passwdfd = -1; static char save_passwd[MAXSECRETLEN]; -static option_t options[] = { +static struct option options[] = { { "passwordfd", o_int, &passwdfd, "Receive password on this file descriptor" }, { NULL } @@ -72,7 +80,7 @@ static int pwfd_passwd (char *user, char *passwd) void plugin_init (void) { - add_options (options); + ppp_add_options (options); pap_check_hook = pwfd_check; pap_passwd_hook = pwfd_passwd; @@ -80,7 +88,7 @@ void plugin_init (void) chap_check_hook = pwfd_check; chap_passwd_hook = pwfd_passwd; -#ifdef USE_EAPTLS +#ifdef PPP_WITH_EAPTLS eaptls_passwd_hook = pwfd_passwd; #endif }