Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ssh %30s is too short for IPv6 addrssses.
details: https://anonhg.NetBSD.org/src/rev/59f9cbf6528b
branches: trunk
changeset: 503534:59f9cbf6528b
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Feb 08 10:08:53 2001 +0000
description:
%30s is too short for IPv6 addrssses.
diffstat:
crypto/dist/ssh/sshconnect.c | 6 +++---
crypto/dist/ssh/sshconnect1.c | 2 +-
crypto/dist/ssh/sshconnect2.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diffs (49 lines):
diff -r eb9abbb8e5d0 -r 59f9cbf6528b crypto/dist/ssh/sshconnect.c
--- a/crypto/dist/ssh/sshconnect.c Thu Feb 08 07:37:18 2001 +0000
+++ b/crypto/dist/ssh/sshconnect.c Thu Feb 08 10:08:53 2001 +0000
@@ -584,10 +584,10 @@
debug("Found key in %s:%d", host_file, host_line);
if (options.check_host_ip && ip_status == HOST_NEW) {
if (!add_host_to_hostfile(user_hostfile, ip, host_key))
- log("Failed to add the %s host key for IP address '%.30s' to the list of known hosts (%.30s).",
+ log("Failed to add the %s host key for IP address '%.128s' to the list of known hosts (%.30s).",
type, ip, user_hostfile);
else
- log("Warning: Permanently added the %s host key for IP address '%.30s' to the list of known hosts.",
+ log("Warning: Permanently added the %s host key for IP address '%.128s' to the list of known hosts.",
type, ip);
}
break;
@@ -697,7 +697,7 @@
if (options.check_host_ip && host_status != HOST_CHANGED &&
ip_status == HOST_CHANGED) {
log("Warning: the %s host key for '%.200s' "
- "differs from the key for the IP address '%.30s'",
+ "differs from the key for the IP address '%.128s'",
type, host, ip);
if (host_status == HOST_OK)
log("Matching host key in %s:%d", host_file, host_line);
diff -r eb9abbb8e5d0 -r 59f9cbf6528b crypto/dist/ssh/sshconnect1.c
--- a/crypto/dist/ssh/sshconnect1.c Thu Feb 08 07:37:18 2001 +0000
+++ b/crypto/dist/ssh/sshconnect1.c Thu Feb 08 10:08:53 2001 +0000
@@ -1032,7 +1032,7 @@
options.password_authentication && !options.batch_mode) {
char prompt[80];
- snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ",
+ snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password: ",
server_user, host);
if (try_password_authentication(prompt))
return;
diff -r eb9abbb8e5d0 -r 59f9cbf6528b crypto/dist/ssh/sshconnect2.c
--- a/crypto/dist/ssh/sshconnect2.c Thu Feb 08 07:37:18 2001 +0000
+++ b/crypto/dist/ssh/sshconnect2.c Thu Feb 08 10:08:53 2001 +0000
@@ -646,7 +646,7 @@
if(attempt != 1)
error("Permission denied, please try again.");
- snprintf(prompt, sizeof(prompt), "%.30s@%.40s's password: ",
+ snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password: ",
authctxt->server_user, authctxt->host);
password = read_passphrase(prompt, 0);
packet_start(SSH2_MSG_USERAUTH_REQUEST);
Home |
Main Index |
Thread Index |
Old Index