Skip to content

Add API to require cryptex#805

Open
fippo wants to merge 1 commit intocisco:2_x_devfrom
fippo:require-cryptex_2x
Open

Add API to require cryptex#805
fippo wants to merge 1 commit intocisco:2_x_devfrom
fippo:require-cryptex_2x

Conversation

@fippo
Copy link
Copy Markdown
Contributor

@fippo fippo commented Mar 26, 2026

allowing applications to reject packets not using cryptex using
srtp_set_stream_require_cryptex(...)

as described in
https://datatracker.ietf.org/doc/html/rfc9335#section-5.2

Fixes #804 (for 2_x_dev)

stream->require_cryptex = enable != 0;
break;
case ssrc_any_inbound:
case ssrc_any_outbound: {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not clear what the behavior should be for ssrc_any_outbound, maybe return srtp_err_status_bad_param?

allowing applications to reject packets not using cryptex using
  srtp_set_stream_require_cryptex(...)

as described in
  https://datatracker.ietf.org/doc/html/rfc9335#section-5.2

Fixes cisco#804 (for 2_x_dev)
@fippo fippo force-pushed the require-cryptex_2x branch from 696f132 to 78e0b8b Compare March 26, 2026 15:48
@fippo fippo marked this pull request as ready for review March 26, 2026 16:07
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.

1 participant