Author: nextgens
Date: 2006-09-06 12:11:41 +0000 (Wed, 06 Sep 2006)
New Revision: 10404
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
Log:
Verify the signature if !fromLocal && the other side has at least 966
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2006-09-06 11:23:57 UTC
(rev 10403)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2006-09-06 12:11:41 UTC
(rev 10404)
@@ -412,7 +412,8 @@
if(signature == null || !DSA.verify(peerPubKey, new
DSASignature(signature), new BigInteger(fs.toOrderedString().getBytes()))){
Logger.error(this, "The integrity of the reference has
been compromized!");
this.isSignatureVerificationSuccessfull = false;
- //FIXME : REMOVE: throw new
ReferenceSignatureVerificationException("The integrity of the reference has
been compromized!");
+ if((Version.getArbitraryBuildNumber(version)>966) &&
(!fromLocal)) // TODO: REMOVE: the backward compat. kludge : version checking
+ throw new
ReferenceSignatureVerificationException("The integrity of the reference has
been compromized!");
}else
this.isSignatureVerificationSuccessfull = true;
} catch (IllegalBase64Exception e) {