|
Lines 83-88
extern uid_t original_effective_uid;
Link Here
|
| 83 |
|
83 |
|
| 84 |
static int show_other_keys(struct hostkeys *, Key *); |
84 |
static int show_other_keys(struct hostkeys *, Key *); |
| 85 |
static void warn_changed_key(Key *); |
85 |
static void warn_changed_key(Key *); |
|
|
86 |
static void warn_missing_key(Key *); |
| 86 |
|
87 |
|
| 87 |
/* Expand a proxy command */ |
88 |
/* Expand a proxy command */ |
| 88 |
static char * |
89 |
static char * |
|
Lines 1299-1308
verify_host_key(char *host, struct sockaddr *hostaddr, Key *host_key)
Link Here
|
| 1299 |
if (flags & DNS_VERIFY_MATCH) { |
1300 |
if (flags & DNS_VERIFY_MATCH) { |
| 1300 |
matching_host_key_dns = 1; |
1301 |
matching_host_key_dns = 1; |
| 1301 |
} else { |
1302 |
} else { |
| 1302 |
warn_changed_key(plain); |
1303 |
if (flags & DNS_VERIFY_MISSING) { |
| 1303 |
error("Update the SSHFP RR in DNS " |
1304 |
warn_missing_key(plain); |
| 1304 |
"with the new host key to get rid " |
1305 |
error("Add this host key to " |
| 1305 |
"of this message."); |
1306 |
"the SSHFP RR in DNS to get rid " |
|
|
1307 |
"of this message."); |
| 1308 |
} else { |
| 1309 |
warn_changed_key(plain); |
| 1310 |
error("Update the SSHFP RR in DNS " |
| 1311 |
"with the new host key to get rid " |
| 1312 |
"of this message."); |
| 1313 |
} |
| 1306 |
} |
1314 |
} |
| 1307 |
} |
1315 |
} |
| 1308 |
} |
1316 |
} |
|
Lines 1449-1454
warn_changed_key(Key *host_key)
Link Here
|
| 1449 |
free(fp); |
1457 |
free(fp); |
| 1450 |
} |
1458 |
} |
| 1451 |
|
1459 |
|
|
|
1460 |
static void |
| 1461 |
warn_missing_key(Key *host_key) |
| 1462 |
{ |
| 1463 |
char *fp; |
| 1464 |
|
| 1465 |
fp = sshkey_fingerprint(host_key, options.fingerprint_hash, |
| 1466 |
SSH_FP_DEFAULT); |
| 1467 |
if (fp == NULL) |
| 1468 |
fatal("%s: sshkey_fingerprint fail", __func__); |
| 1469 |
|
| 1470 |
error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); |
| 1471 |
error("@ WARNING: REMOTE HOST IDENTIFICATION IS MISSING @"); |
| 1472 |
error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); |
| 1473 |
error("The fingerprint for the %s key sent by the remote host is\n%s.", |
| 1474 |
key_type(host_key), fp); |
| 1475 |
error("Please contact your system administrator."); |
| 1476 |
|
| 1477 |
free(fp); |
| 1478 |
} |
| 1452 |
/* |
1479 |
/* |
| 1453 |
* Execute a local command |
1480 |
* Execute a local command |
| 1454 |
*/ |
1481 |
*/ |
| 1455 |
- |
|
|
| 1456 |
missing. |
1482 |
missing. |
| 1457 |
-- |
|
|
| 1458 |
sshconnect.c | 10 ++++++++++ |
1483 |
sshconnect.c | 10 ++++++++++ |
| 1459 |
1 file changed, 10 insertions(+) |
1484 |
1 file changed, 10 insertions(+) |