- {
- struct param_post_auth packet = { &tunnel[t], &session[s], session[s].user, (*buf == 2), PPPCHAP };
- run_plugins(PLUGIN_POST_AUTH, &packet);
- *buf = packet.auth_allowed ? 2 : 3;
- }
-
- LOG(3, s, session[s].tunnel, " CHAP User %s authentication %s.\n", session[s].user,
- (*buf == 2) ? "allowed" : "denied");
- *p = (*buf == 2) ? 3 : 4; // ack/nak