| 4199 | } |
| 4200 | |
| 4201 | static void |
| 4202 | sppp_chap_open(struct sppp *sp) |
| 4203 | { |
| 4204 | if (sp->myauth.proto == PPP_CHAP && |
| 4205 | (sp->lcp.opts & (1 << LCP_OPT_AUTH_PROTO)) != 0) { |
| 4206 | /* we are authenticator for CHAP, start it */ |
| 4207 | chap.scr(sp); |
| 4208 | sp->rst_counter[IDX_CHAP] = sp->lcp.max_configure; |
| 4209 | sppp_cp_change_state(&chap, sp, STATE_REQ_SENT); |
| 4210 | } |
| 4211 | /* nothing to be done if we are peer, await a challenge */ |
| 4212 | } |
| 4213 | |
| 4214 | static void |
| 4215 | sppp_chap_close(struct sppp *sp) |
nothing calls this directly
no test coverage detected