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

[minion-cvs] Infer SURB expiry time if none is given



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

Modified Files:
	BuildMessage.py 
Log Message:
Infer SURB expiry time if none is  given

Index: BuildMessage.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/BuildMessage.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- BuildMessage.py	13 Jan 2003 06:13:33 -0000	1.36
+++ BuildMessage.py	4 Feb 2003 02:01:46 -0000	1.37
@@ -172,6 +172,8 @@
        """
     if secretPRNG is None:
         secretPRNG = Crypto.getCommonPRNG()
+    if expiryTime is None:
+        expiryTime = min([s.getValidUntil() for s in path])
 
     LOG.debug("Building reply block for path %s",
                    [s.getNickname() for s in path])