version 1.32.2.1, 2001/09/27 19:03:54 |
version 1.32.2.2, 2001/11/15 00:15:19 |
|
|
|
|
/* Check that it is at least big enough to contain the ID string. */ |
/* Check that it is at least big enough to contain the ID string. */ |
if (len < sizeof(authfile_id_string)) { |
if (len < sizeof(authfile_id_string)) { |
debug3("No RSA1 key file %.200s.", filename); |
debug3("Not a RSA1 key file %.200s.", filename); |
buffer_free(&buffer); |
buffer_free(&buffer); |
return NULL; |
return NULL; |
} |
} |
|
|
*/ |
*/ |
for (i = 0; i < sizeof(authfile_id_string); i++) |
for (i = 0; i < sizeof(authfile_id_string); i++) |
if (buffer_get_char(&buffer) != authfile_id_string[i]) { |
if (buffer_get_char(&buffer) != authfile_id_string[i]) { |
debug3("No RSA1 key file %.200s.", filename); |
debug3("Not a RSA1 key file %.200s.", filename); |
buffer_free(&buffer); |
buffer_free(&buffer); |
return NULL; |
return NULL; |
} |
} |
|
|
|
|
/* Check that it is at least big enough to contain the ID string. */ |
/* Check that it is at least big enough to contain the ID string. */ |
if (len < sizeof(authfile_id_string)) { |
if (len < sizeof(authfile_id_string)) { |
debug3("No RSA1 key file %.200s.", filename); |
debug3("Not a RSA1 key file %.200s.", filename); |
buffer_free(&buffer); |
buffer_free(&buffer); |
close(fd); |
close(fd); |
return NULL; |
return NULL; |
|
|
*/ |
*/ |
for (i = 0; i < sizeof(authfile_id_string); i++) |
for (i = 0; i < sizeof(authfile_id_string); i++) |
if (buffer_get_char(&buffer) != authfile_id_string[i]) { |
if (buffer_get_char(&buffer) != authfile_id_string[i]) { |
debug3("No RSA1 key file %.200s.", filename); |
debug3("Not a RSA1 key file %.200s.", filename); |
buffer_free(&buffer); |
buffer_free(&buffer); |
close(fd); |
close(fd); |
return NULL; |
return NULL; |