|
Lines 37-42
Link Here
|
| 37 |
#include "packet.h" |
37 |
#include "packet.h" |
| 38 |
#include "mpaux.h" |
38 |
#include "mpaux.h" |
| 39 |
#include "uidswap.h" |
39 |
#include "uidswap.h" |
|
|
40 |
#include "compat.h" |
| 40 |
#include "log.h" |
41 |
#include "log.h" |
| 41 |
#include "readconf.h" |
42 |
#include "readconf.h" |
| 42 |
#include "key.h" |
43 |
#include "key.h" |
|
Lines 944-950
Link Here
|
| 944 |
packet_get_bignum(host_key->rsa->n); |
945 |
packet_get_bignum(host_key->rsa->n); |
| 945 |
|
946 |
|
| 946 |
rbits = BN_num_bits(host_key->rsa->n); |
947 |
rbits = BN_num_bits(host_key->rsa->n); |
| 947 |
if (bits != rbits) { |
948 |
if (bits != rbits && |
|
|
949 |
!((datafellows & SSH_BUG_SERVERLIESSIZE) && (rbits + 1 == bits))) { |
| 948 |
log("Warning: Server lies about size of server host key: " |
950 |
log("Warning: Server lies about size of server host key: " |
| 949 |
"actual size is %d bits vs. announced %d.", rbits, bits); |
951 |
"actual size is %d bits vs. announced %d.", rbits, bits); |
| 950 |
log("Warning: This may be due to an old implementation of ssh."); |
952 |
log("Warning: This may be due to an old implementation of ssh."); |