public static UseSrtpData GetUseSrtpExtension(IDictionary extensions) { byte[] extensionData = TlsUtilities.GetExtensionData(extensions, 14); if (extensionData != null) { return(TlsSRTPUtils.ReadUseSrtpExtension(extensionData)); } return(null); }
public static void AddUseSrtpExtension(IDictionary extensions, UseSrtpData useSRTPData) { extensions[14] = TlsSRTPUtils.CreateUseSrtpExtension(useSRTPData); }