version 1.115, 2003/04/02 09:48:07 |
version 1.116, 2003/04/08 20:21:29 |
|
|
xxx_hostaddr = hostaddr; |
xxx_hostaddr = hostaddr; |
|
|
if (options.ciphers == (char *)-1) { |
if (options.ciphers == (char *)-1) { |
log("No valid ciphers for protocol version 2 given, using defaults."); |
logit("No valid ciphers for protocol version 2 given, using defaults."); |
options.ciphers = NULL; |
options.ciphers = NULL; |
} |
} |
if (options.ciphers != NULL) { |
if (options.ciphers != NULL) { |
|
|
packet_check_eom(); |
packet_check_eom(); |
|
|
if (partial != 0) |
if (partial != 0) |
log("Authenticated with partial success."); |
logit("Authenticated with partial success."); |
debug("Authentications that can continue: %s", authlist); |
debug("Authentications that can continue: %s", authlist); |
|
|
clear_auth_state(authctxt); |
clear_auth_state(authctxt); |
|
|
info = packet_get_string(NULL); |
info = packet_get_string(NULL); |
lang = packet_get_string(NULL); |
lang = packet_get_string(NULL); |
if (strlen(info) > 0) |
if (strlen(info) > 0) |
log("%s", info); |
logit("%s", info); |
xfree(info); |
xfree(info); |
xfree(lang); |
xfree(lang); |
packet_start(SSH2_MSG_USERAUTH_REQUEST); |
packet_start(SSH2_MSG_USERAUTH_REQUEST); |
|
|
if (strcmp(password, retype) != 0) { |
if (strcmp(password, retype) != 0) { |
memset(password, 0, strlen(password)); |
memset(password, 0, strlen(password)); |
xfree(password); |
xfree(password); |
log("Mismatch; try again, EOF to quit."); |
logit("Mismatch; try again, EOF to quit."); |
password = NULL; |
password = NULL; |
} |
} |
memset(retype, 0, strlen(retype)); |
memset(retype, 0, strlen(retype)); |
|
|
inst = packet_get_string(NULL); |
inst = packet_get_string(NULL); |
lang = packet_get_string(NULL); |
lang = packet_get_string(NULL); |
if (strlen(name) > 0) |
if (strlen(name) > 0) |
log("%s", name); |
logit("%s", name); |
if (strlen(inst) > 0) |
if (strlen(inst) > 0) |
log("%s", inst); |
logit("%s", inst); |
xfree(name); |
xfree(name); |
xfree(inst); |
xfree(inst); |
xfree(lang); |
xfree(lang); |