Home | History | Annotate | Download | only in eap_peer

Lines Matching refs:pos

588 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos)
596 os_memcpy(pos, imc->imc_send, imc->imc_send_len);
597 pos += imc->imc_send_len;
603 return pos;
656 char *pos = os_strstr(start, "<Type>");
657 if (pos == NULL)
659 pos += 6;
660 *type = strtoul(pos, NULL, 16);
667 char *pos, *pos2;
670 pos = os_strstr(start, "<Base64>");
671 if (pos == NULL)
674 pos += 8;
675 pos2 = os_strstr(pos, "</Base64>");
680 decoded = base64_decode((unsigned char *) pos, os_strlen(pos),
693 char *pos, *pos2, saved;
696 pos = os_strstr(start, "<TNCCS-Recommendation ");
697 if (pos == NULL)
700 pos += 21;
701 pos = os_strstr(pos, " type=");
702 if (pos == NULL)
704 pos += 6;
706 if (*pos == '"')
707 pos++;
709 pos2 = pos;
718 wpa_printf(MSG_DEBUG, "TNC: TNCCS-Recommendation: '%s'", pos);
721 if (os_strcmp(pos, "allow") == 0)
723 else if (os_strcmp(pos, "none") == 0)
725 else if (os_strcmp(pos, "isolate") == 0)
737 char *buf, *start, *end, *pos, *pos2, *payload;
760 pos = os_strstr(start, "BatchId=");
761 if (pos == NULL) {
766 pos += 8;
767 if (*pos == '"')
768 pos++;
769 batch_id = atoi(pos);
781 while (*pos != '\0' && *pos != '>')
782 pos++;
783 if (*pos == '\0') {
787 pos++;
801 pos = os_strstr(start, "<IMC-IMV-Message>");
802 if (pos == NULL)
804 start = pos + 17;
846 pos = os_strstr(start, "<TNCC-TNCS-Message>");
847 if (pos == NULL)
849 start = pos + 19;
869 pos = os_strstr(start, "<XML>");
870 if (pos) {
871 pos += 5;
872 pos2 = os_strstr(pos, "</XML>");
879 xml = pos;
1054 char *pos, *pos2;
1074 pos = start;
1075 wpa_printf(MSG_DEBUG, "TNC: Configured IMC: %s", pos);
1076 if (pos + 1 >= end || *pos != '"') {
1083 pos++;
1084 pos2 = pos;
1094 wpa_printf(MSG_DEBUG, "TNC: Name: '%s'", pos);
1095 imc->name = os_strdup(pos);
1097 pos = pos2 + 1;
1098 if (pos >= end || *pos != ' ') {
1106 pos++;
1107 wpa_printf(MSG_DEBUG, "TNC: IMC file: '%s'", pos);
1108 imc->path = os_strdup(pos);
1117 char *config, *end, *pos, *line_end;
1131 for (pos = config; pos < end; pos = line_end + 1) {
1132 line_end = pos;
1138 if (os_strncmp(pos, "IMC ", 4) == 0) {
1141 imc = tncc_parse_imc(pos + 4, line_end, &error);
1329 const u8 *pos;
1337 pos = data;
1340 if (WPA_GET_BE16(pos) != EAP_TLV_VENDOR_SPECIFIC_TLV)
1342 pos += 2;
1345 if (WPA_GET_BE16(pos) < 8)
1347 pos += 2;
1350 if (WPA_GET_BE32(pos) != EAP_VENDOR_MICROSOFT)
1352 pos += 4;
1355 if (WPA_GET_BE16(pos) != 0x02 /* SoH request TLV */)