summaryrefslogtreecommitdiffstats
path: root/hosts/.scripts
diff options
context:
space:
mode:
authorLassulus <Lassulus@googlemail.com>2011-05-11 22:36:01 +0200
committerLassulus <Lassulus@googlemail.com>2011-05-11 22:36:01 +0200
commit93b380f239e344dc4bc5111b4b49491203416a36 (patch)
tree7b0fa12ef993161df175cca3f1913db7a0c55c51 /hosts/.scripts
parent2f92469d2d6f57bcd66e2507ee9fb4eea0246093 (diff)
more debug
Diffstat (limited to 'hosts/.scripts')
-rwxr-xr-xhosts/.scripts/retiolum.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/.scripts/retiolum.py b/hosts/.scripts/retiolum.py
index 51e7a215..05123692 100755
--- a/hosts/.scripts/retiolum.py
+++ b/hosts/.scripts/retiolum.py
@@ -140,14 +140,17 @@ def recvthread(netname, hostname, timeoutfifo, authfifo): #recieves input from m
if dataval[3] != hostname:
timeoutfifo.put(["tst", dataval[3], ip])
logging.info("recv: got Stage1: writing data to timeout")
+ logging.debug("recv: ;tst;" + dataval[3] + ";" + ip)
if dataval[1] == "Stage2":
if dataval[3] == hostname:
authfifo.put([dataval[1], dataval[3], ip, dataval[4]])
logging.info("recv: got Stage2: writing data to auth")
+ logging.debug("recv: ;" + dataval[1] + ";" + dataval[3] + ";" + ip + ";" + dataval[4])
if dataval[1] == "Stage3":
if dataval[3] != hostname:
authfifo.put([dataval[1], dataval[3], ip, dataval[4]])
logging.info("recv: got Stage3: writing data to auth")
+ logging.debug("recv: ;" + gdataval[1] + ";" + dataval[3] + ";" + ip + ";" + dataval[4])
except:
logging.error("recv: socket init failed")
time.sleep(10)
@@ -204,6 +207,7 @@ def auththread(netname, hostname, authfifo, sendfifo, timeoutfifo): #manages aut
sendtext = "#Stage2#" + netname + "#" + curauth[1] + "#" + encrypted_message + "#"
sendfifo.put(sendtext)
logging.info("auth: got Stage1 sending now Stage2")
+ logging.debug("auth: " + sendtext)
if curauth[0] == "Stage2":
dec_message = priv_decrypt(netname, curauth[3])
@@ -216,6 +220,7 @@ def auththread(netname, hostname, authfifo, sendfifo, timeoutfifo): #manages aut
sendtext = "#Stage3#" + netname + "#" + curauth[1] + "#" + encrypted_message + "#"
sendfifo.put(sendtext)
logging.info("auth: got Stage2 sending now Stage3")
+ logging.debug("auth: " + sendtext)
if curauth[0] == "Stage3":
line = findhostinlist(authlist, curauth[1], curauth[2])