Skip to content

Echo crypto suite tag of the offer SDP in the answer SDP - #17

Merged
dennwc merged 1 commit into
livekit:mainfrom
alexbakker:crypto-suite-tag
Aug 27, 2025
Merged

Echo crypto suite tag of the offer SDP in the answer SDP#17
dennwc merged 1 commit into
livekit:mainfrom
alexbakker:crypto-suite-tag

Conversation

@alexbakker

Copy link
Copy Markdown
Contributor

Currently, when Livekit generates an answer SDP, the crypto suite will have a tag value of whatever index was assigned to it by DefaultProfiles(). This is a problem in case the offerer strictly validates that the tag in the answer is equal to the one in the offer.

RFC 4568 section 5.1.3:

When the offerer receives the answer, the offerer MUST verify that
one of the initially offered crypto suites and its accompanying tag
were accepted and echoed in the answer

This patch should solve the last of the SDES-related compatibility issues with rtpengine that I encountered.

Note that this does not address the fact that Livekit ignores the crypto suite tag when processing an answer SDP.

Currently, when Livekit generates an answer SDP, the crypto suite will
have a tag value of whatever index was assigned to it by
``DefaultProfiles()``. This is a problem in case the offerer strictly
validates that the tag in the answer is equal to the one in the offer.

RFC 4568 section 5.1.3:

```
When the offerer receives the answer, the offerer MUST verify that
one of the initially offered crypto suites and its accompanying tag
were accepted and echoed in the answer
```

This patch should solve the last of the SDES-related compatibility issues
with rtpengine that I encountered.

Note that this does not address the fact that Livekit ignores the crypto
suite tag when processing an answer SDP.
@alexbakker
alexbakker requested a review from a team as a code owner August 27, 2025 09:57
@dennwc
dennwc merged commit 75a4ae3 into livekit:main Aug 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants