| 4640 | } |
| 4641 | |
| 4642 | static void |
| 4643 | sppp_pap_scr(struct sppp *sp) |
| 4644 | { |
| 4645 | u_char idlen, pwdlen; |
| 4646 | |
| 4647 | sp->confid[IDX_PAP] = ++sp->pp_seq[IDX_PAP]; |
| 4648 | pwdlen = sppp_strnlen(sp->myauth.secret, AUTHKEYLEN); |
| 4649 | idlen = sppp_strnlen(sp->myauth.name, AUTHNAMELEN); |
| 4650 | |
| 4651 | sppp_auth_send(&pap, sp, PAP_REQ, sp->confid[IDX_PAP], |
| 4652 | sizeof idlen, (const char *)&idlen, |
| 4653 | (size_t)idlen, sp->myauth.name, |
| 4654 | sizeof pwdlen, (const char *)&pwdlen, |
| 4655 | (size_t)pwdlen, sp->myauth.secret, |
| 4656 | 0); |
| 4657 | } |
| 4658 | |
| 4659 | /* |
| 4660 | * Random miscellaneous functions. |
nothing calls this directly
no test coverage detected