pub unsafe extern "C" fn srtp_crypto_policy_set_from_profile_for_rtp(
policy: *mut srtp_crypto_policy_t,
profile: srtp_profile_t,
) -> srtp_err_status_t
Expand description
@brief srtp_crypto_policy_set_from_profile_for_rtp() sets a crypto policy structure to the appropriate value for RTP based on an srtp_profile_t
@param policy is a pointer to the policy structure to be set
@param profile is an enumeration for the policy to be set
The function call srtp_crypto_policy_set_rtp_default(&policy, profile) sets the srtp_crypto_policy_t at location policy to the policy for RTP protection, as defined by the srtp_profile_t profile.
This function is a convenience that helps to avoid dealing directly with the policy data structure. You are encouraged to initialize policy elements with this function call. Doing so may allow your code to be forward compatible with later versions of libSRTP that include more elements in the srtp_crypto_policy_t datatype.
@return values - srtp_err_status_ok no problems were encountered - srtp_err_status_bad_param the profile is not supported