version 1.84, 2013/06/21 00:34:49 |
version 1.85, 2013/07/12 00:19:58 |
|
|
const BIGNUM *client_n, Key **rkey) |
const BIGNUM *client_n, Key **rkey) |
{ |
{ |
char *fp, line[SSH_MAX_PUBKEY_BYTES]; |
char *fp, line[SSH_MAX_PUBKEY_BYTES]; |
int allowed = 0; |
int allowed = 0, bits; |
u_int bits; |
|
FILE *f; |
FILE *f; |
u_long linenum = 0; |
u_long linenum = 0; |
Key *key; |
Key *key; |
|
|
|
|
/* check the real bits */ |
/* check the real bits */ |
keybits = BN_num_bits(key->rsa->n); |
keybits = BN_num_bits(key->rsa->n); |
if (keybits < 0 || bits != (u_int)keybits) |
if (keybits < 0 || bits != keybits) |
logit("Warning: %s, line %lu: keysize mismatch: " |
logit("Warning: %s, line %lu: keysize mismatch: " |
"actual %d vs. announced %d.", |
"actual %d vs. announced %d.", |
file, linenum, BN_num_bits(key->rsa->n), bits); |
file, linenum, BN_num_bits(key->rsa->n), bits); |