version 1.52, 2003/08/28 12:54:34 |
version 1.53, 2003/09/23 20:17:11 |
|
|
* Performs authentication of an incoming connection. Session key has already |
* Performs authentication of an incoming connection. Session key has already |
* been exchanged and encryption is enabled. |
* been exchanged and encryption is enabled. |
*/ |
*/ |
Authctxt * |
void |
do_authentication(void) |
do_authentication(Authctxt *authctxt) |
{ |
{ |
Authctxt *authctxt; |
|
u_int ulen; |
u_int ulen; |
char *user, *style = NULL; |
char *user, *style = NULL; |
|
|
|
|
if ((style = strchr(user, ':')) != NULL) |
if ((style = strchr(user, ':')) != NULL) |
*style++ = '\0'; |
*style++ = '\0'; |
|
|
authctxt = authctxt_new(); |
|
authctxt->user = user; |
authctxt->user = user; |
authctxt->style = style; |
authctxt->style = style; |
|
|
|
|
packet_start(SSH_SMSG_SUCCESS); |
packet_start(SSH_SMSG_SUCCESS); |
packet_send(); |
packet_send(); |
packet_write_wait(); |
packet_write_wait(); |
|
|
return (authctxt); |
|
} |
} |