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

[minion-cvs] Mixminion now has a working (but not bulletproof) reply...



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

Modified Files:
	Modules.py PacketHandler.py 
Log Message:
Mixminion now has a working (but not bulletproof) reply block CLI.

ClientMain:
	- Implement first pass of message decoding
	- Implement first pass of CLI for SURB generation
	- Implement CLI for sending messages to SURBs
	- Minor bugfixes to new code

Config:
	- Lower default surb path length

Crypto:
	- Suppress pychecker warning

Main:
	- Add new 'decode' and 'generate-surb' commands

Packet:
	- Debug text-encoded message parsing

test:
	- Test text-encoded message parsing

Modules, *:
	 - Rename ascii-encoded messages to text-encoded messages


Index: Modules.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/Modules.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- Modules.py	4 Feb 2003 02:05:02 -0000	1.26
+++ Modules.py	5 Feb 2003 05:34:55 -0000	1.27
@@ -994,5 +994,5 @@
         assert packet.isPlaintext()
         junk_msg = ""
 
-    encMsg = packet.getAsciiEncodedMessage()
+    encMsg = packet.getTextEncodedMessage()
     return "%s%s"%(junk_msg, encMsg.pack())

Index: PacketHandler.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/PacketHandler.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- PacketHandler.py	4 Feb 2003 02:05:36 -0000	1.6
+++ PacketHandler.py	5 Feb 2003 05:34:55 -0000	1.7
@@ -286,7 +286,7 @@
     def getAsciiTag(self):
         return base64.encodestring(self.tag).strip()
 
-    def getAsciiEncodedMessage(self):
+    def getTextEncodedMessage(self):
         tag = None
         if self.isOvercompressed():
             tp = 'LONG'
@@ -300,4 +300,4 @@
             assert self.isPlaintext()
             tp = 'BIN'
             
-        return Packet.AsciiEncodedMessage(self.contents, tp, tag)
+        return Packet.TextEncodedMessage(self.contents, tp, tag)