[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Implement spec w.r.t. zeroed-out keyid fields
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv2095/lib/mixminion
Modified Files:
MMTPClient.py
Log Message:
Implement spec w.r.t. zeroed-out keyid fields
Index: MMTPClient.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/MMTPClient.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- MMTPClient.py 12 Jan 2003 04:27:19 -0000 1.15
+++ MMTPClient.py 13 Jan 2003 06:16:42 -0000 1.16
@@ -40,7 +40,10 @@
"""Open a new connection."""
self.targetIP = targetIP
self.targetPort = targetPort
- self.targetKeyID = targetKeyID
+ if targetKeyID != '\x00' *20:
+ self.targetKeyID = targetKeyID
+ else:
+ self.targetKeyID = None #DOCDOC
self.context = _ml.TLSContext_new()
self.tls = None
self.sock = None