Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add srtp_set_user_data() and srtp_get_user_data() functions. #66

Merged
merged 1 commit into from Sep 22, 2014
Merged

Add srtp_set_user_data() and srtp_get_user_data() functions. #66

merged 1 commit into from Sep 22, 2014

Conversation

ibc
Copy link
Contributor

@ibc ibc commented Aug 20, 2014

Two new functions:

  • void srtp_set_user_data(srtp_t ctx, void *data)
  • void* srtp_get_user_data(srtp_t ctx)

It allows the user to associate custom data within a given srtp_t context. Useful for later retrieval when a SRTP event is fired (so the user can retrieve the custom data by calling srtp_get_user_data() with the session field of the srtp_event_data_t struct as argument).

This pull request fixes #65.

The commit also includes some minor fixes in the srtp.h documentation (some functions get a srtp_t as argument rather than a pointer to a srtp_t and vice-versa).

@jfigus
Copy link
Contributor

jfigus commented Aug 27, 2014

This looks reasonable. We'll wait a few more days to allow for the other maintainers to comment. If nobody objects, we'll merge this into the master.

@ibc
Copy link
Contributor Author

ibc commented Sep 22, 2014

Any update on this please? Thanks a lot.

jfigus added a commit that referenced this pull request Sep 22, 2014
Add srtp_set_user_data() and srtp_get_user_data() functions.  Thanks for the contribution.
@jfigus jfigus merged commit 50cb951 into cisco:master Sep 22, 2014
@ibc
Copy link
Contributor Author

ibc commented Sep 23, 2014

Thanks a lot :)

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.

Allow storing void* data into the strp_t session.
2 participants