version 1.62, 2004/12/11 01:48:56 |
version 1.63, 2005/06/17 02:44:32 |
|
|
while (read_keyfile_line(f, file, line, sizeof(line), &linenum) != -1) { |
while (read_keyfile_line(f, file, line, sizeof(line), &linenum) != -1) { |
char *cp; |
char *cp; |
char *key_options; |
char *key_options; |
|
int keybits; |
|
|
/* Skip leading whitespace, empty and comment lines. */ |
/* Skip leading whitespace, empty and comment lines. */ |
for (cp = line; *cp == ' ' || *cp == '\t'; cp++) |
for (cp = line; *cp == ' ' || *cp == '\t'; cp++) |
|
|
continue; |
continue; |
|
|
/* check the real bits */ |
/* check the real bits */ |
if (bits != BN_num_bits(key->rsa->n)) |
keybits = BN_num_bits(key->rsa->n); |
|
if (keybits < 0 || bits != (u_int)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); |