コード例 #1
0
 public static UseSrtpData GetUseSrtpExtension(IDictionary extensions)
 {
     byte[] extensionData = TlsUtilities.GetExtensionData(extensions, 14);
     if (extensionData != null)
     {
         return(TlsSRTPUtils.ReadUseSrtpExtension(extensionData));
     }
     return(null);
 }
コード例 #2
0
 public static void AddUseSrtpExtension(IDictionary extensions, UseSrtpData useSRTPData)
 {
     extensions[14] = TlsSRTPUtils.CreateUseSrtpExtension(useSRTPData);
 }