Home | History | Annotate | Download | only in hostapd

Lines Matching refs:resp

19  * SIM-RESP-AUTH <IMSI> Kc1:SRES1:RAND1 Kc2:SRES2:RAND2 [Kc3:SRES3:RAND3]
20 * SIM-RESP-AUTH <IMSI> FAILURE
22 * GSM-AUTH-RESP <IMSI> Kc1:SRES1:Kc2:SRES2[:Kc3:SRES3]
23 * GSM-AUTH-RESP <IMSI> FAILURE
27 * AKA-RESP-AUTH <IMSI> <RAND> <AUTN> <IK> <CK> <RES>
28 * AKA-RESP-AUTH <IMSI> FAILURE
625 static int sim_req_auth(char *imsi, char *resp, size_t resp_len)
633 resp[0] = '\0';
644 rend = resp + resp_len;
645 rpos = resp;
646 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi);
698 static int gsm_auth_req(char *imsi, char *resp, size_t resp_len)
704 resp[0] = '\0';
711 rend = resp + resp_len;
712 rpos = resp;
713 ret = os_snprintf(rpos, rend - rpos, "GSM-AUTH-RESP %s", imsi);
770 static int aka_req_auth(char *imsi, char *resp, size_t resp_len)
772 /* AKA-RESP-AUTH <IMSI> <RAND> <AUTN> <IK> <CK> <RES> */
816 pos = resp;
817 end = resp + resp_len;
818 ret = snprintf(pos, end - pos, "AKA-RESP-AUTH %s ", imsi);
843 static int aka_auts(char *imsi, char *resp, size_t resp_len)
849 resp[0] = '\0';
898 static int process_cmd(char *cmd, char *resp, size_t resp_len)
901 return sim_req_auth(cmd + 13, resp, resp_len);
904 return gsm_auth_req(cmd + 13, resp, resp_len);
907 return aka_req_auth(cmd + 13, resp, resp_len);
910 return aka_auts(cmd + 9, resp, resp_len);
919 char buf[1000], resp[1000];
941 if (process_cmd(buf, resp, sizeof(resp)) < 0) {
946 if (resp[0] == '\0') {
951 printf("Send: %s\n", resp);
953 if (sendto(s, resp, os_strlen(resp), 0, (struct sockaddr *) &from,