comparison src/c-client/auth_log.c @ 1:28a55bc1110c imapext-2007-1

[mq]: imapext
author yuuji@gentei.org
date Mon, 14 Sep 2009 19:23:11 +0900
parents ada5e610ab86
children 2366b362676d
comparison
equal deleted inserted replaced
0:ada5e610ab86 1:28a55bc1110c
103 char *auth_login_server (authresponse_t responder,int argc,char *argv[]) 103 char *auth_login_server (authresponse_t responder,int argc,char *argv[])
104 { 104 {
105 char *ret = NIL; 105 char *ret = NIL;
106 char *user,*pass,*authuser; 106 char *user,*pass,*authuser;
107 if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { 107 if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) {
108 #ifdef QMAIL
109 extern char* conv_virtualdomain(char*);
110 user = conv_virtualdomain(user);
111 #endif
108 if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { 112 if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) {
109 /* delimit user from possible admin */ 113 /* delimit user from possible admin */
110 if (authuser = strchr (user,'*')) *authuser++ = '\0'; 114 if (authuser = strchr (user,'*')) *authuser++ = '\0';
111 if (server_login (user,pass,authuser,argc,argv)) ret = myusername (); 115 if (server_login (user,pass,authuser,argc,argv)) ret = myusername ();
112 fs_give ((void **) &pass); 116 fs_give ((void **) &pass);

yatex.org