• Home
  • Raw
  • Download

Lines Matching refs:rpos

629 	char *rpos, *rend;  in sim_req_auth()  local
645 rpos = resp; in sim_req_auth()
646 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
647 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
649 rpos += ret; in sim_req_auth()
658 *rpos++ = ' '; in sim_req_auth()
659 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
660 *rpos++ = ':'; in sim_req_auth()
661 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in sim_req_auth()
662 *rpos++ = ':'; in sim_req_auth()
663 rpos += wpa_snprintf_hex(rpos, rend - rpos, _rand, 16); in sim_req_auth()
665 *rpos = '\0'; in sim_req_auth()
674 if (rpos < rend) in sim_req_auth()
675 *rpos++ = ' '; in sim_req_auth()
676 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->kc, 8); in sim_req_auth()
677 if (rpos < rend) in sim_req_auth()
678 *rpos++ = ':'; in sim_req_auth()
679 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->sres, 4); in sim_req_auth()
680 if (rpos < rend) in sim_req_auth()
681 *rpos++ = ':'; in sim_req_auth()
682 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->_rand, 16); in sim_req_auth()
688 ret = snprintf(rpos, rend - rpos, " FAILURE"); in sim_req_auth()
689 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
691 rpos += ret; in sim_req_auth()
701 char *pos, *rpos, *rend; in gsm_auth_req() local
712 rpos = resp; in gsm_auth_req()
713 ret = os_snprintf(rpos, rend - rpos, "GSM-AUTH-RESP %s", imsi); in gsm_auth_req()
714 if (ret < 0 || ret >= rend - rpos) in gsm_auth_req()
716 rpos += ret; in gsm_auth_req()
725 *rpos++ = count == 0 ? ' ' : ':'; in gsm_auth_req()
726 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in gsm_auth_req()
727 *rpos++ = ':'; in gsm_auth_req()
728 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in gsm_auth_req()
734 *rpos = '\0'; in gsm_auth_req()
739 ret = os_snprintf(rpos, rend - rpos, " FAILURE"); in gsm_auth_req()
740 if (ret < 0 || ret >= rend - rpos) in gsm_auth_req()
742 rpos += ret; in gsm_auth_req()