[dovecot-cvs] dovecot/src/auth auth-client-connection.c, 1.29, 1.30 auth-client-connection.h, 1.7, 1.8

cras at dovecot.org cras at dovecot.org
Sat Jan 8 21:01:36 EET 2005


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv21887/src/auth

Modified Files:
	auth-client-connection.c auth-client-connection.h 
Log Message:
Removed SERVICE command. It's quite useless extra state to keep around.



Index: auth-client-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-client-connection.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- auth-client-connection.c	8 Jan 2005 16:56:04 -0000	1.29
+++ auth-client-connection.c	8 Jan 2005 19:01:34 -0000	1.30
@@ -153,14 +153,6 @@
 }
 
 static int
-auth_client_input_service(struct auth_client_connection *conn, const char *args)
-{
-	if (conn->default_service == NULL)
-		conn->default_service = p_strdup(conn->pool, args);
-	return TRUE;
-}
-
-static int
 auth_client_input_cpid(struct auth_client_connection *conn, const char *args)
 {
         struct auth_client_connection *old;
@@ -267,8 +259,6 @@
 			valid_client_cert = TRUE;
 	}
 
-	if (request->service == NULL)
-		request->service = conn->default_service;
 	if (request->service == NULL) {
 		i_error("BUG: Authentication client %u "
 			"didn't specify service in request", conn->pid);
@@ -410,8 +400,6 @@
 			ret = auth_client_input_cont(conn, line + 5);
 		else if (strncmp(line, "CPID\t", 5) == 0)
 			ret = auth_client_input_cpid(conn, line + 5);
-		else if (strncmp(line, "SERVICE\t", 6) == 0)
-			ret = auth_client_input_service(conn, line + 6);
 		else {
 			/* ignore unknown command */
 			ret = TRUE;

Index: auth-client-connection.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-client-connection.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- auth-client-connection.h	7 Jan 2005 19:55:49 -0000	1.7
+++ auth-client-connection.h	8 Jan 2005 19:01:34 -0000	1.8
@@ -15,7 +15,6 @@
 
 	pool_t pool;
 	struct hash_table *auth_requests;
-	char *default_service;
 
 	unsigned int pid;
 	unsigned int connect_uid;



More information about the dovecot-cvs mailing list