[dovecot-cvs] dovecot/src/auth auth-request.c, 1.90, 1.91 auth-request.h, 1.33, 1.34
tss at dovecot.org
tss at dovecot.org
Sat Mar 10 16:04:37 EET 2007
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv1557
Modified Files:
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.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- auth-request.c 9 Mar 2007 00:27:11 -0000 1.90
+++ auth-request.c 10 Mar 2007 14:04:34 -0000 1.91
@@ -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;
@@ -1076,6 +1078,7 @@
{ 'w', NULL },
{ '!', NULL },
{ 'm', NULL },
+ { 'c', NULL },
{ '\0', NULL }
};
struct var_expand_table *tab;
@@ -1112,6 +1115,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.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- auth-request.h 16 Feb 2007 17:23:01 -0000 1.33
+++ auth-request.h 10 Mar 2007 14:04:34 -0000 1.34
@@ -85,6 +85,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