Use a generic encoding type for all variable length chunks

This commit is contained in:
Martin Willi
2012-03-20 17:30:42 +01:00
parent ee50a29385
commit 95a26523af
18 changed files with 23 additions and 199 deletions
+1 -16
View File
@@ -532,22 +532,7 @@ METHOD(parser_t, parse_payload, status_t,
}
break;
}
/* chunks */
case NONCE_DATA:
case HASH_DATA:
case ID_DATA:
case AUTH_DATA:
case CERT_DATA:
case CERTREQ_DATA:
case EAP_DATA:
case SPIS:
case VID_DATA:
case CONFIGURATION_ATTRIBUTE_VALUE:
case KEY_EXCHANGE_DATA:
case KEY_EXCHANGE_DATA_V1:
case NOTIFICATION_DATA:
case ENCRYPTED_DATA:
case UNKNOWN_DATA:
case CHUNK_DATA:
{
if (payload_length < header_length ||
!parse_chunk(this, rule_number, output + rule->offset,