version 1.71, 2001/04/18 22:03:45 |
version 1.72, 2001/04/18 23:43:26 |
|
|
Buffer b; |
Buffer b; |
u_char *signature, *blob; |
u_char *signature, *blob; |
char *chost, *pkalg, *p; |
char *chost, *pkalg, *p; |
|
const char *service; |
u_int blen, slen; |
u_int blen, slen; |
int ok, i, len, found = 0; |
int ok, i, len, found = 0; |
|
|
|
|
xfree(chost); |
xfree(chost); |
return 0; |
return 0; |
} |
} |
|
service = datafellows & SSH_BUG_HBSERVICE ? "ssh-userauth" : |
|
authctxt->service; |
pkalg = xstrdup(key_ssh_name(private)); |
pkalg = xstrdup(key_ssh_name(private)); |
buffer_init(&b); |
buffer_init(&b); |
if (datafellows & SSH_OLD_SESSIONID) { |
|
buffer_append(&b, session_id2, session_id2_len); |
|
} else { |
|
buffer_put_string(&b, session_id2, session_id2_len); |
|
} |
|
/* construct data */ |
/* construct data */ |
|
buffer_put_string(&b, session_id2, session_id2_len); |
buffer_put_char(&b, SSH2_MSG_USERAUTH_REQUEST); |
buffer_put_char(&b, SSH2_MSG_USERAUTH_REQUEST); |
buffer_put_cstring(&b, authctxt->server_user); |
buffer_put_cstring(&b, authctxt->server_user); |
buffer_put_cstring(&b, |
buffer_put_cstring(&b, service); |
datafellows & SSH_BUG_HBSERVICE ? |
|
"ssh-userauth" : |
|
authctxt->service); |
|
buffer_put_cstring(&b, authctxt->method->name); |
buffer_put_cstring(&b, authctxt->method->name); |
buffer_put_cstring(&b, pkalg); |
buffer_put_cstring(&b, pkalg); |
buffer_put_string(&b, blob, blen); |
buffer_put_string(&b, blob, blen); |