Home | History | Annotate | Download | only in eap_peer

Lines Matching refs:pos

594 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos)
602 os_memcpy(pos, imc->imc_send, imc->imc_send_len);
603 pos += imc->imc_send_len;
609 return pos;
662 char *pos = os_strstr(start, "<Type>");
663 if (pos == NULL)
665 pos += 6;
666 *type = strtoul(pos, NULL, 16);
673 char *pos, *pos2;
676 pos = os_strstr(start, "<Base64>");
677 if (pos == NULL)
680 pos += 8;
681 pos2 = os_strstr(pos, "</Base64>");
686 decoded = base64_decode((unsigned char *) pos, os_strlen(pos),
699 char *pos, *pos2, saved;
702 pos = os_strstr(start, "<TNCCS-Recommendation ");
703 if (pos == NULL)
706 pos += 21;
707 pos = os_strstr(pos, " type=");
708 if (pos == NULL)
710 pos += 6;
712 if (*pos == '"')
713 pos++;
715 pos2 = pos;
724 wpa_printf(MSG_DEBUG, "TNC: TNCCS-Recommendation: '%s'", pos);
727 if (os_strcmp(pos, "allow") == 0)
729 else if (os_strcmp(pos, "none") == 0)
731 else if (os_strcmp(pos, "isolate") == 0)
743 char *buf, *start, *end, *pos, *pos2, *payload;
768 pos = os_strstr(start, "BatchId=");
769 if (pos == NULL) {
774 pos += 8;
775 if (*pos == '"')
776 pos++;
777 batch_id = atoi(pos);
789 while (*pos != '\0' && *pos != '>')
790 pos++;
791 if (*pos == '\0') {
795 pos++;
809 pos = os_strstr(start, "<IMC-IMV-Message>");
810 if (pos == NULL)
812 start = pos + 17;
854 pos = os_strstr(start, "<TNCC-TNCS-Message>");
855 if (pos == NULL)
857 start = pos + 19;
877 pos = os_strstr(start, "<XML>");
878 if (pos) {
879 pos += 5;
880 pos2 = os_strstr(pos, "</XML>");
887 xml = pos;
1062 char *pos, *pos2;
1082 pos = start;
1083 wpa_printf(MSG_DEBUG, "TNC: Configured IMC: %s", pos);
1084 if (pos + 1 >= end || *pos != '"') {
1091 pos++;
1092 pos2 = pos;
1102 wpa_printf(MSG_DEBUG, "TNC: Name: '%s'", pos);
1103 imc->name = os_strdup(pos);
1105 pos = pos2 + 1;
1106 if (pos >= end || *pos != ' ') {
1114 pos++;
1115 wpa_printf(MSG_DEBUG, "TNC: IMC file: '%s'", pos);
1116 imc->path = os_strdup(pos);
1125 char *config, *end, *pos, *line_end;
1139 for (pos = config; pos < end; pos = line_end + 1) {
1140 line_end = pos;
1146 if (os_strncmp(pos, "IMC ", 4) == 0) {
1149 imc = tncc_parse_imc(pos + 4, line_end, &error);
1337 const u8 *pos;
1345 pos = data;
1348 if (WPA_GET_BE16(pos) != EAP_TLV_VENDOR_SPECIFIC_TLV)
1350 pos += 2;
1353 if (WPA_GET_BE16(pos) < 8)
1355 pos += 2;
1358 if (WPA_GET_BE32(pos) != EAP_VENDOR_MICROSOFT)
1360 pos += 4;
1363 if (WPA_GET_BE16(pos) != 0x02 /* SoH request TLV */)