|
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 933-941
Link Here
|
| 933 |
|
934 |
|
| 934 |
rbits = BN_num_bits(server_key->rsa->n); |
935 |
rbits = BN_num_bits(server_key->rsa->n); |
| 935 |
if (bits != rbits) { |
936 |
if (bits != rbits) { |
| 936 |
log("Warning: Server lies about size of server public key: " |
937 |
verbose("Warning: Server lies about size of server public key: " |
| 937 |
"actual size is %d bits vs. announced %d.", rbits, bits); |
938 |
"actual size is %d bits vs. announced %d.", rbits, bits); |
| 938 |
log("Warning: This may be due to an old implementation of ssh."); |
939 |
verbose("Warning: This may be due to an old implementation of ssh."); |
| 939 |
} |
940 |
} |
| 940 |
/* Get the host key. */ |
941 |
/* Get the host key. */ |
| 941 |
host_key = key_new(KEY_RSA1); |
942 |
host_key = key_new(KEY_RSA1); |
|
Lines 945-953
Link Here
|
| 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) { |
| 948 |
log("Warning: Server lies about size of server host key: " |
949 |
/* |
|
|
950 |
* sshd 1.2.2* has been observed to sometimes announce host |
| 951 |
* key sizes one bit more than actual size when the actual |
| 952 |
* size is an odd number of bits. |
| 953 |
*/ |
| 954 |
verbose("Warning: Server lies about size of server host key: " |
| 949 |
"actual size is %d bits vs. announced %d.", rbits, bits); |
955 |
"actual size is %d bits vs. announced %d.", rbits, bits); |
| 950 |
log("Warning: This may be due to an old implementation of ssh."); |
956 |
verbose("Warning: This may be due to an old implementation of ssh."); |
| 951 |
} |
957 |
} |
| 952 |
|
958 |
|
| 953 |
/* Get protocol flags. */ |
959 |
/* Get protocol flags. */ |