Skip to content

When is safe to use srtp_remove_stream? #656

Closed
@fippo

Description

@fippo

srtp_remove_stream removes the context associated with a particular SSRC.
Which seems like a good thing memory wise (and for faster lookups?) to do for long-running sessions with a lot of SSRCs added and removed (even though I have not heard many complaints yet).

Given to the considerations in
https://www.rfc-editor.org/rfc/rfc3711#section-8
and
https://www.rfc-editor.org/rfc/rfc7714#section-8.4
is this "safe" to call srtp_remove_stream as a receiver?
If a remote side chooses to reuse a SSRC with a new ROC that is a problem of that side and if that side reuses the ROC it should fail to decrypt?

And while at it, removing a sending SSRC does not prevent later reuse? Which seems ok but documentation handrails might be good!

See also #68 which is somewhat related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions