DO NOT USE THIS

This commit is contained in:
Cort Buffington 2018-10-12 15:03:36 -05:00
parent bccf8d93dd
commit cdbfcbb59c
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ class OPENBRIDGE(DatagramProtocol):
# self._logger.debug('(%s) RX packet from %s -- %s', self._system, _sockaddr, ahex(_data))
if _packet[:4] == 'DMRD': # DMRData -- encapsulated DMR data frame
_data = _data[:53]
_data = _packet[:53]
_hash = _packet[53:]
_ckhs = hmac_new(self._config['PASSPHRASE'],_data[53:],sha1).digest()
if compare_digest(_hash, _ckhs) and _sockaddr == self._config['TARGET_SOCK']: