version 1.64, 2001/04/04 09:48:35 |
version 1.65, 2001/04/04 14:34:58 |
|
|
myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs; |
myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs; |
} |
} |
|
|
|
/* start key exchange */ |
kex = kex_setup(myproposal); |
kex = kex_setup(myproposal); |
kex->client_version_string=client_version_string; |
kex->client_version_string=client_version_string; |
kex->server_version_string=server_version_string; |
kex->server_version_string=server_version_string; |
|
|
|
|
xxx_kex = kex; |
xxx_kex = kex; |
|
|
/* start key exchange */ |
|
dispatch_run(DISPATCH_BLOCK, &kex->newkeys, kex); |
dispatch_run(DISPATCH_BLOCK, &kex->newkeys, kex); |
|
|
session_id2 = kex->session_id; |
session_id2 = kex->session_id; |
|
|
Authctxt authctxt; |
Authctxt authctxt; |
int type; |
int type; |
int plen; |
int plen; |
int i; |
|
|
|
if (options.challenge_reponse_authentication) |
if (options.challenge_reponse_authentication) |
options.kbd_interactive_authentication = 1; |
options.kbd_interactive_authentication = 1; |
|
|
/* initial userauth request */ |
/* initial userauth request */ |
userauth_none(&authctxt); |
userauth_none(&authctxt); |
|
|
/* dispatch_init(&input_userauth_error); */ |
dispatch_init(&input_userauth_error); |
for (i = 50; i <= 254; i++) { |
|
dispatch_set(i, &input_userauth_error); |
|
} |
|
dispatch_set(SSH2_MSG_USERAUTH_SUCCESS, &input_userauth_success); |
dispatch_set(SSH2_MSG_USERAUTH_SUCCESS, &input_userauth_success); |
dispatch_set(SSH2_MSG_USERAUTH_FAILURE, &input_userauth_failure); |
dispatch_set(SSH2_MSG_USERAUTH_FAILURE, &input_userauth_failure); |
dispatch_set(SSH2_MSG_USERAUTH_BANNER, &input_userauth_banner); |
dispatch_set(SSH2_MSG_USERAUTH_BANNER, &input_userauth_banner); |