version 1.12, 1999/10/03 21:50:04 |
version 1.13, 1999/10/03 22:01:39 |
|
|
packet_get_bignum(host_key->n, &clen); |
packet_get_bignum(host_key->n, &clen); |
sum_len += clen; |
sum_len += clen; |
|
|
if (options->check_host_ip && strcmp(host, inet_ntoa(hostaddr->sin_addr))) { |
/* Store the host key from the known host file in here |
/* Store the host key from the known host file in here |
* so that we can compare it with the key for the IP |
* so that we can compare it with the key for the IP |
* address. */ |
* address. */ |
file_key = RSA_new(); |
file_key = RSA_new(); |
file_key->n = BN_new(); |
file_key->n = BN_new(); |
file_key->e = BN_new(); |
file_key->e = BN_new(); |
|
} |
|
|
|
/* Get protocol flags. */ |
/* Get protocol flags. */ |
protocol_flags = packet_get_int(); |
protocol_flags = packet_get_int(); |
|
|
ip_status = HOST_DIFFER; |
ip_status = HOST_DIFFER; |
|
|
RSA_free(ip_key); |
RSA_free(ip_key); |
RSA_free(file_key); |
|
} else |
} else |
ip_status = host_status; |
ip_status = host_status; |
|
|
|
RSA_free(file_key); |
|
|
switch (host_status) { |
switch (host_status) { |
case HOST_OK: |
case HOST_OK: |