MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sppp_pap_scr

Function sppp_pap_scr

freebsd/net/if_spppsubr.c:4642–4657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4640}
4641
4642static void
4643sppp_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.

Callers

nothing calls this directly

Calls 2

sppp_strnlenFunction · 0.85
sppp_auth_sendFunction · 0.85

Tested by

no test coverage detected