From 4f7fc558cc3daa33d3f567f9cdadeed4670b6fd7 Mon Sep 17 00:00:00 2001 From: Mike Zingman Date: Fri, 11 Dec 2015 10:44:27 -0500 Subject: [PATCH] Bridge auth to unuath (or visa versa) networks was not using the correct function. Force to use auth when needed. --- bridge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge.py b/bridge.py index decea16..ed14855 100755 --- a/bridge.py +++ b/bridge.py @@ -218,7 +218,7 @@ class bridgeIPSC(IPSC): # Calculate and append the authentication hash for the target network... if necessary if NETWORK[_target]['LOCAL']['AUTH_ENABLED']: - _tmp_data = self.hashed_packet(NETWORK[_target]['LOCAL']['AUTH_KEY'], _tmp_data) + _tmp_data = self.auth_hashed_packet(NETWORK[_target]['LOCAL']['AUTH_KEY'], _tmp_data) # Send the packet to all peers in the target IPSC networks[_target].send_to_ipsc(_tmp_data) @@ -242,7 +242,7 @@ class bridgeIPSC(IPSC): # Calculate and append the authentication hash for the target network... if necessary if NETWORK[target]['LOCAL']['AUTH_ENABLED']: - _tmp_data = self.hashed_packet(NETWORK[target]['LOCAL']['AUTH_KEY'], _tmp_data) + _tmp_data = self.auth_hashed_packet(NETWORK[target]['LOCAL']['AUTH_KEY'], _tmp_data) # Send the packet to all peers in the target IPSC networks[target].send_to_ipsc(_tmp_data) @@ -258,7 +258,7 @@ class bridgeIPSC(IPSC): # Calculate and append the authentication hash for the target network... if necessary if NETWORK[target]['LOCAL']['AUTH_ENABLED']: - _tmp_data = self.hashed_packet(NETWORK[target]['LOCAL']['AUTH_KEY'], _tmp_data) + _tmp_data = self.auth_hashed_packet(NETWORK[target]['LOCAL']['AUTH_KEY'], _tmp_data) # Send the packet to all peers in the target IPSC networks[target].send_to_ipsc(_tmp_data)