[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Add a warning when generating reply blocks without expl...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv712/lib/mixminion

Modified Files:
	BuildMessage.py 
Log Message:
Add a warning when generating reply blocks without explicit expiry time (should be impossible from CLI)

Index: BuildMessage.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/BuildMessage.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- BuildMessage.py	9 Feb 2003 22:30:58 -0000	1.39
+++ BuildMessage.py	5 Mar 2003 21:21:20 -0000	1.40
@@ -172,6 +172,9 @@
     if secretPRNG is None:
         secretPRNG = Crypto.getCommonPRNG()
     if expiryTime is None:
+        # XXXX This is dangerous, and should go away; the user should
+        # XXXX *always* specify an expiry time.
+        LOG.warn("Inferring expiry time for reply block")
         expiryTime = min([s.getValidUntil() for s in path])
 
     LOG.debug("Building reply block for path %s",