[Cluster-devel] cluster/cman/daemon ais.c

pcaulfield at sourceware.org pcaulfield at sourceware.org
Thu May 10 09:05:17 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	pcaulfield at sourceware.org	2007-05-10 09:05:16

Modified files:
	cman/daemon    : ais.c 

Log message:
	Don't override <totem secauth>  if it appears in cluster.conf.
	This allows users to disable encryption if they want.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.44.2.2&r2=1.44.2.3

--- cluster/cman/daemon/ais.c	2006/12/18 09:48:11	1.44.2.2
+++ cluster/cman/daemon/ais.c	2007/05/10 09:05:16	1.44.2.3
@@ -515,9 +515,11 @@
 							"none", strlen("none")+1);
 		}
 
-		sprintf(tmp, "%d", 1);
-		objdb->object_key_create(object_handle, "secauth", strlen("secauth"),
-					 tmp, strlen(tmp)+1);
+		if (objdb_get_string(objdb, object_handle, "secauth", &value)) {
+			sprintf(tmp, "%d", 1);
+			objdb->object_key_create(object_handle, "secauth", strlen("secauth"),
+						 tmp, strlen(tmp)+1);
+		}
 
 		if (key_filename)
 		{




More information about the Cluster-devel mailing list