Searched refs:lsuffix (Results 1 – 2 of 2) sorted by relevance
487 int lsuffix, lusername; in npppd_auth_get_user() local493 lsuffix = strlen(base->pppsuffix); in npppd_auth_get_user()495 if (lsuffix > 0 && lusername > lsuffix && in npppd_auth_get_user()496 strcmp(username + lusername - lsuffix, base->pppsuffix) == 0 && in npppd_auth_get_user()497 lusername - lsuffix < sizeof(buf)) { in npppd_auth_get_user()498 memcpy(buf, username, lusername - lsuffix); in npppd_auth_get_user()499 buf[lusername - lsuffix] = '\0'; in npppd_auth_get_user()
2011 int lsuffix, lusername, lmax; in npppd_ppp_bind_realm() local2046 lsuffix = strlen(npppd_auth_get_suffix(realm0)); in npppd_ppp_bind_realm()2047 if (lsuffix > lmax && in npppd_ppp_bind_realm()2048 (lsuffix == 0 || in npppd_ppp_bind_realm()2049 (lsuffix < lusername && strcmp(username + lusername in npppd_ppp_bind_realm()2050 - lsuffix, npppd_auth_get_suffix(realm0)) in npppd_ppp_bind_realm()2052 lmax = lsuffix; in npppd_ppp_bind_realm()