Update of /cvsroot/freenet/freenet/src/freenet/crypt
In directory sc8-pr-cvs1:/tmp/cvs-serv13542/src/freenet/crypt

Modified Files:
        CipherOutputStream.java 
Log Message:
6179:
Fix zab's deadlocks.
Add setTrailerStream to MessageSendCallback. Now we can theoretically send any message 
fully async (we don't yet use it except in the below).
Add some new files, PeerHandler, PeerPacket, PeerPacketMessage, which will be used for 
a major refactoring of ConnectionHandler and separation of the message queue into a 
per-peer thing, rather than a per-connection thing. Not integrated yet, so should be 
harmless.
toString(), logging. Add log messages for long messageInitialStateTime's.
Add getCipher() to CipherOutputStream, for future use in refactoring and possibly 
elsewhere, and Link.encryptBytes(byte[]) for similar use.


Index: CipherOutputStream.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/crypt/CipherOutputStream.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- CipherOutputStream.java     13 Jan 2002 05:24:23 -0000      1.1.1.1
+++ CipherOutputStream.java     8 Sep 2003 17:03:04 -0000       1.2
@@ -16,7 +16,11 @@
 public class CipherOutputStream extends FilterOutputStream {
 
     private final PCFBMode ctx;
-
+    
+    public PCFBMode getCipher() {
+       return ctx;
+    }
+    
     public CipherOutputStream(BlockCipher c, OutputStream out) 
                                         throws IOException {
         this(new PCFBMode(c), out);

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to