[dovecot-cvs] dovecot/src/auth auth-request.c, 1.58.2.29, 1.58.2.30 auth-request.h, 1.27.2.5, 1.27.2.6

tss at dovecot.org tss at dovecot.org
Sat Mar 10 16:04:33 EET 2007


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

Modified Files:
      Tag: branch_1_0
	auth-request.c auth-request.h 
Log Message:
Added %c variable which expands to "secured" with SSL/TLS/localhost.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.29
retrieving revision 1.58.2.30
diff -u -d -r1.58.2.29 -r1.58.2.30
--- auth-request.c	9 Mar 2007 00:27:08 -0000	1.58.2.29
+++ auth-request.c	10 Mar 2007 14:04:31 -0000	1.58.2.30
@@ -155,6 +155,8 @@
 		net_addr2ip(value, &request->local_ip);
 	else if (strcmp(key, "rip") == 0)
 		net_addr2ip(value, &request->remote_ip);
+	else if (strcmp(key, "secured") == 0)
+		request->secured = TRUE;
 	else
 		return FALSE;
 
@@ -1048,6 +1050,7 @@
 		{ 'w', NULL },
 		{ '!', NULL },
 		{ 'm', NULL },
+		{ 'c', NULL },
 		{ '\0', NULL }
 	};
 	struct var_expand_table *tab;
@@ -1084,6 +1087,7 @@
 	}
 	tab[10].value = auth_request->mech == NULL ? "" :
 		auth_request->mech->mech_name;
+	tab[11].value = auth_request->secured ? "secured" : "";
 	return tab;
 }
 

Index: auth-request.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.h,v
retrieving revision 1.27.2.5
retrieving revision 1.27.2.6
diff -u -d -r1.27.2.5 -r1.27.2.6
--- auth-request.h	16 Feb 2007 17:22:57 -0000	1.27.2.5
+++ auth-request.h	10 Mar 2007 14:04:31 -0000	1.27.2.6
@@ -84,6 +84,7 @@
 	unsigned int proxy:1;
 	unsigned int cert_username:1;
 	unsigned int userdb_lookup:1;
+	unsigned int secured:1;
 
 	/* ... mechanism specific data ... */
 };



More information about the dovecot-cvs mailing list