version 1.33, 2001/12/28 13:57:33 |
version 1.34, 2001/12/28 14:50:54 |
|
|
char *client_user, *password; |
char *client_user, *password; |
char info[1024]; |
char info[1024]; |
u_int dlen; |
u_int dlen; |
int plen; |
|
u_int ulen; |
u_int ulen; |
int type = 0; |
int type = 0; |
struct passwd *pw = authctxt->pw; |
struct passwd *pw = authctxt->pw; |
|
|
info[0] = '\0'; |
info[0] = '\0'; |
|
|
/* Get a packet from the client. */ |
/* Get a packet from the client. */ |
type = packet_read(&plen); |
type = packet_read(); |
|
|
/* Process the packet. */ |
/* Process the packet. */ |
switch (type) { |
switch (type) { |
|
|
{ |
{ |
Authctxt *authctxt; |
Authctxt *authctxt; |
struct passwd *pw; |
struct passwd *pw; |
int plen; |
|
u_int ulen; |
u_int ulen; |
char *p, *user, *style = NULL; |
char *p, *user, *style = NULL; |
|
|
/* Get the name of the user that we wish to log in as. */ |
/* Get the name of the user that we wish to log in as. */ |
packet_read_expect(&plen, SSH_CMSG_USER); |
packet_read_expect(SSH_CMSG_USER); |
|
|
/* Get the user name. */ |
/* Get the user name. */ |
user = packet_get_string(&ulen); |
user = packet_get_string(&ulen); |