ts-payload: Add support for TS of type TS_SECLABEL

The security labels can be retrieved in a separate list from the
regular traffic selectors.  We currently only plan to support a single
security label ourselves, so when generating we don't expect a list.
This commit is contained in:
Tobias Brunner
2022-04-14 18:42:01 +02:00
parent a44de0b957
commit f4c0ec0b71
4 changed files with 63 additions and 14 deletions
+2 -2
View File
@@ -305,12 +305,12 @@ static void process_auth_response(private_pretend_auth_t *this,
if (this->tsi)
{
message->add_payload(message, (payload_t*)
ts_payload_create_from_traffic_selectors(TRUE, this->tsi));
ts_payload_create_from_traffic_selectors(TRUE, this->tsi, NULL));
}
if (this->tsr)
{
message->add_payload(message, (payload_t*)
ts_payload_create_from_traffic_selectors(FALSE, this->tsr));
ts_payload_create_from_traffic_selectors(FALSE, this->tsr, NULL));
}
}