selectSrtpProfile

fnSrtpProfile selectSrtpProfile(const(SrtpProfile[]) offered, const(SrtpProfile[]) supported) @safe pure nothrow @nogc

Selects the best matching SRTP profile from offered profiles.

Parameters

offeredProfiles offered by the client.
supportedProfiles supported by the server.

Returns

The first matching profile, or SrtpProfile.init if none match.