Home | History | Annotate | Download | only in hostapd

Lines Matching full:rpos

593 	char *rpos, *rend;
609 rpos = resp;
610 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi);
611 if (ret < 0 || ret >= rend - rpos)
613 rpos += ret;
622 *rpos++ = ' ';
623 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8);
624 *rpos++ = ':';
625 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4);
626 *rpos++ = ':';
627 rpos += wpa_snprintf_hex(rpos, rend - rpos, _rand, 16);
629 *rpos = '\0';
638 if (rpos < rend)
639 *rpos++ = ' ';
640 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->kc, 8);
641 if (rpos < rend)
642 *rpos++ = ':';
643 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->sres, 4);
644 if (rpos < rend)
645 *rpos++ = ':';
646 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->_rand, 16);
652 ret = snprintf(rpos, rend - rpos, " FAILURE");
653 if (ret < 0 || ret >= rend - rpos)
655 rpos += ret;
665 char *pos, *rpos, *rend;
676 rpos = resp;
677 ret = os_snprintf(rpos, rend - rpos, "GSM-AUTH-RESP %s", imsi);
678 if (os_snprintf_error(rend - rpos, ret))
680 rpos += ret;
689 *rpos++ = count == 0 ? ' ' : ':';
690 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8);
691 *rpos++ = ':';
692 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4);
698 *rpos = '\0';
703 ret = os_snprintf(rpos, rend - rpos, " FAILURE");
704 if (os_snprintf_error(rend - rpos, ret))
706 rpos += ret;