inetcomm: Add an implementation of IPOP3Transport::CommandPASS.

This commit is contained in:
Hans Leidekker 2008-11-04 11:34:44 +01:00 committed by Alexandre Julliard
parent 954945cd2e
commit d80d9b82f2
1 changed files with 19 additions and 2 deletions

View File

@ -439,8 +439,25 @@ static HRESULT WINAPI POP3Transport_CommandUSER(IPOP3Transport *iface, LPSTR use
static HRESULT WINAPI POP3Transport_CommandPASS(IPOP3Transport *iface, LPSTR password) static HRESULT WINAPI POP3Transport_CommandPASS(IPOP3Transport *iface, LPSTR password)
{ {
FIXME("(%s)\n", password); static char pass[] = "PASS ";
return E_NOTIMPL; POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
TRACE("(%p)\n", password);
len = sizeof(pass) + strlen(password) + 2; /* "\r\n" */
command = HeapAlloc(GetProcessHeap(), 0, len);
strcpy(command, pass);
strcat(command, password);
strcat(command, "\r\n");
This->command = POP3_PASS;
InternetTransport_DoCommand(&This->InetTransport, command, POP3Transport_CallbackRecvPASSResp);
HeapFree(GetProcessHeap(), 0, command);
return S_OK;
} }
static HRESULT WINAPI POP3Transport_CommandLIST( static HRESULT WINAPI POP3Transport_CommandLIST(