WebRTC output DTLS optional for RTCP packets
This commit is contained in:
		
							parent
							
								
									6307428476
								
							
						
					
					
						commit
						fff4e2b3d4
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		|  | @ -1122,11 +1122,14 @@ namespace Mist{ | ||||||
|     }else{ |     }else{ | ||||||
|       //Decrypt feedback packet
 |       //Decrypt feedback packet
 | ||||||
|       int len = udp.data.size(); |       int len = udp.data.size(); | ||||||
|       if (srtpReader.unprotectRtcp((uint8_t *)(char*)udp.data, &len) != 0){ |       if (doDTLS){ | ||||||
|         if (packetLog.is_open()){packetLog << "[" << Util::bootMS() << "]" << "RTCP decrypt failure" << std::endl;} |         if (srtpReader.unprotectRtcp((uint8_t *)(char*)udp.data, &len) != 0){ | ||||||
|         FAIL_MSG("Failed to unprotect RTCP."); |           if (packetLog.is_open()){packetLog << "[" << Util::bootMS() << "]" << "RTCP decrypt failure" << std::endl;} | ||||||
|         return; |           FAIL_MSG("Failed to unprotect RTCP."); | ||||||
|  |           return; | ||||||
|  |         } | ||||||
|       } |       } | ||||||
|  | 
 | ||||||
|       lastRecv = Util::bootMS(); |       lastRecv = Util::bootMS(); | ||||||
|       uint8_t fmt = udp.data[0] & 0x1F; |       uint8_t fmt = udp.data[0] & 0x1F; | ||||||
|       if (pt == 77 || pt == 65){ |       if (pt == 77 || pt == 65){ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ramkoemar
						Ramkoemar