On Monday 14 April 2008 03:44, [EMAIL PROTECTED] wrote: > Author: nextgens > Date: 2008-04-14 02:44:11 +0000 (Mon, 14 Apr 2008) > New Revision: 19291 > > Modified: > trunk/freenet/src/freenet/keys/FreenetURI.java > Log: > doh... even though it doesn't matter yet it might with other keytypes > > Modified: trunk/freenet/src/freenet/keys/FreenetURI.java > =================================================================== > --- trunk/freenet/src/freenet/keys/FreenetURI.java 2008-04-14 02:42:33 UTC (rev 19290) > +++ trunk/freenet/src/freenet/keys/FreenetURI.java 2008-04-14 02:44:11 UTC (rev 19291) > @@ -643,10 +643,8 @@ > dis.readFully(cryptoKey); > // Number of bytes of extra depends on key type > int extraLen; > - if(type == CHK) > + if((type == CHK) || (type == SSK)) > extraLen = ClientCHK.EXTRA_LENGTH; > - else //if(type == SSK) > - extraLen = ClientSSK.EXTRA_LENGTH;
Eh?!?!?!?! What are you doing here, apart from breaking FreenetURI? Obviously an SSK needs ClientSSK.EXTRA_LENGTH and a CHK needs ClientCHK.EXTRA_LENGTH ... ??? > extra = new byte[extraLen]; > dis.readFully(extra); > }
pgp1yC93QfBT1.pgp
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
