[freenet-cvs] r15030 - trunk/freenet/src/freenet/node

juiceman at freenetproject.org juiceman at freenetproject.org
Sat Sep 8 07:48:56 UTC 2007


Author: juiceman
Date: 2007-09-08 07:48:55 +0000 (Sat, 08 Sep 2007)
New Revision: 15030

Modified:
   trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Remove access to config options for insecure pre-1010 keys.  I will slowly start removing back-compatibility code unless someone else would prefer to do it.

Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java	2007-09-08 00:02:08 UTC (rev 15029)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java	2007-09-08 07:48:55 UTC (rev 15030)
@@ -331,35 +331,35 @@
 		// REDFLAG normally we wouldn't use static variables to carry important non-final data, but in this
 		// case it's temporary code which will be removed before 0.7.0.
 		
-		nodeConfig.register("allowInsecureCHKs", false, sortOrder++, true, false, "NodeClientCore.allowInsecureCHK", "NodeClientCore.allowInsecureCHKLong",
-				new BooleanCallback() {
+		//nodeConfig.register("allowInsecureCHKs", false, sortOrder++, true, false, "NodeClientCore.allowInsecureCHK", "NodeClientCore.allowInsecureCHKLong",
+		//		new BooleanCallback() {
 
-					public boolean get() {
-						return Key.ALLOW_INSECURE_CLIENT_CHKS;
-					}
+		//			public boolean get() {
+		//				return Key.ALLOW_INSECURE_CLIENT_CHKS;
+		//			}
 
-					public void set(boolean val) throws InvalidConfigValueException {
-						Key.ALLOW_INSECURE_CLIENT_CHKS = val;
-					}
-			
-		});
+		//			public void set(boolean val) throws InvalidConfigValueException {
+		//				Key.ALLOW_INSECURE_CLIENT_CHKS = val;
+		//			}
+		//	
+		//});
 		
-		Key.ALLOW_INSECURE_CLIENT_CHKS = nodeConfig.getBoolean("allowInsecureCHKs");
+		Key.ALLOW_INSECURE_CLIENT_CHKS = false;
 		
-		nodeConfig.register("allowInsecureSSKs", false, sortOrder++, true, false, "NodeClientCore.allowInsecureSSK", "NodeClientCore.allowInsecureSSKLong",
-				new BooleanCallback() {
+		//nodeConfig.register("allowInsecureSSKs", false, sortOrder++, true, false, "NodeClientCore.allowInsecureSSK", "NodeClientCore.allowInsecureSSKLong",
+		//		new BooleanCallback() {
 
-					public boolean get() {
-						return Key.ALLOW_INSECURE_CLIENT_SSKS;
-					}
+		//			public boolean get() {
+		//				return Key.ALLOW_INSECURE_CLIENT_SSKS;
+		//			}
 
-					public void set(boolean val) throws InvalidConfigValueException {
-						Key.ALLOW_INSECURE_CLIENT_SSKS = val;
-					}
-			
-		});
+		//			public void set(boolean val) throws InvalidConfigValueException {
+		//				Key.ALLOW_INSECURE_CLIENT_SSKS = val;
+		//			}
+		//	
+		//});
 		
-		Key.ALLOW_INSECURE_CLIENT_SSKS = nodeConfig.getBoolean("allowInsecureSSKs");
+		Key.ALLOW_INSECURE_CLIENT_SSKS = false;
 		
 		// This is all part of construction, not of start().
 		// Some plugins depend on it, so it needs to be *created* before they are started.




More information about the cvs mailing list