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
@@ -891,9 +891,9 @@ static bool build_payloads(private_child_create_t *this, message_t *message)
}
/* add TSi/TSr payloads */
ts_payload = ts_payload_create_from_traffic_selectors(TRUE, this->tsi);
ts_payload = ts_payload_create_from_traffic_selectors(TRUE, this->tsi, NULL);
message->add_payload(message, (payload_t*)ts_payload);
ts_payload = ts_payload_create_from_traffic_selectors(FALSE, this->tsr);
ts_payload = ts_payload_create_from_traffic_selectors(FALSE, this->tsr, NULL);
message->add_payload(message, (payload_t*)ts_payload);
/* add a notify if we are not in tunnel mode */