Просмотр исходного кода

fixes a missed merge in the totemmrp mergeup

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@788 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 20 лет назад
Родитель
Сommit
d6dc23e25e
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      exec/main.c
  2. 1 1
      exec/totem.h

+ 3 - 0
exec/main.c

@@ -1125,6 +1125,9 @@ int main (int argc, char **argv)
 		ais_done (AIS_DONE_MAINCONFIGREAD);
 		ais_done (AIS_DONE_MAINCONFIGREAD);
 	}
 	}
 
 
+	aisexec_keyread (openais_config.totem_config.private_key);
+	openais_config.totem_config.private_key_len = sizeof (openais_config.totem_config.private_key);
+
 	res = log_setup (&error_string, openais_config.logmode, openais_config.logfile);
 	res = log_setup (&error_string, openais_config.logmode, openais_config.logfile);
 	if (res == -1) {
 	if (res == -1) {
 		log_printf (LOG_LEVEL_ERROR, error_string);
 		log_printf (LOG_LEVEL_ERROR, error_string);

+ 1 - 1
exec/totem.h

@@ -82,7 +82,7 @@ struct totem_config {
 	/*
 	/*
 	 * key information
 	 * key information
 	 */
 	 */
-	unsigned char *private_key;
+	unsigned char private_key[128];
 	int private_key_len;
 	int private_key_len;
 
 
 	/*
 	/*