version 1.3, 2000/04/27 08:01:27 |
version 1.4, 2000/04/27 17:54:01 |
|
|
} |
} |
dsa_make_key_blob(k, &blob, &bloblen); |
dsa_make_key_blob(k, &blob, &bloblen); |
|
|
//DSA_print_fp(stderr, k->dsa, 8); |
|
|
|
/* data to be signed */ |
/* data to be signed */ |
buffer_init(&b); |
buffer_init(&b); |
buffer_append(&b, session_id2, session_id2_len); |
buffer_append(&b, session_id2, session_id2_len); |
|
|
packet_done(); |
packet_done(); |
if (partial) |
if (partial) |
debug("partial success"); |
debug("partial success"); |
if (strstr(auths, "publickey") != NULL) { |
if (options.rsa_authentication && |
|
strstr(auths, "publickey") != NULL) { |
while (i < options.num_identity_files2) { |
while (i < options.num_identity_files2) { |
sent = ssh2_try_pubkey( |
sent = ssh2_try_pubkey( |
options.identity_files2[i++], |
options.identity_files2[i++], |
|
|
} |
} |
} |
} |
if (!sent) { |
if (!sent) { |
if (strstr(auths, "password") != NULL) { |
if (options.password_authentication && |
|
!options.batch_mode && |
|
strstr(auths, "password") != NULL) { |
sent = ssh2_try_passwd(server_user, host, service); |
sent = ssh2_try_passwd(server_user, host, service); |
} else { |
|
fatal("passwd auth not supported: %s", auths); |
|
} |
} |
if (!sent) |
|
fatal("no more auths: %s", auths); |
|
} |
} |
|
if (!sent) |
|
fatal("Permission denied (%s).", auths); |
xfree(auths); |
xfree(auths); |
} |
} |
packet_done(); |
packet_done(); |