version 1.21, 2000/11/12 19:50:37 |
version 1.22, 2000/12/19 23:17:56 |
|
|
*/ |
*/ |
|
|
int |
int |
hostfile_read_key(char **cpp, unsigned int *bitsp, Key *ret) |
hostfile_read_key(char **cpp, u_int *bitsp, Key *ret) |
{ |
{ |
char *cp; |
char *cp; |
|
|
|
|
} |
} |
|
|
int |
int |
auth_rsa_read_key(char **cpp, unsigned int *bitsp, BIGNUM * e, BIGNUM * n) |
auth_rsa_read_key(char **cpp, u_int *bitsp, BIGNUM * e, BIGNUM * n) |
{ |
{ |
Key *k = key_new(KEY_RSA1); |
Key *k = key_new(KEY_RSA1); |
int ret = hostfile_read_key(cpp, bitsp, k); |
int ret = hostfile_read_key(cpp, bitsp, k); |
|
|
FILE *f; |
FILE *f; |
char line[8192]; |
char line[8192]; |
int linenum = 0; |
int linenum = 0; |
unsigned int kbits, hostlen; |
u_int kbits, hostlen; |
char *cp, *cp2; |
char *cp, *cp2; |
HostStatus end_return; |
HostStatus end_return; |
|
|
|
|
; |
; |
|
|
/* Check if the host name matches. */ |
/* Check if the host name matches. */ |
if (match_hostname(host, cp, (unsigned int) (cp2 - cp)) != 1) |
if (match_hostname(host, cp, (u_int) (cp2 - cp)) != 1) |
continue; |
continue; |
|
|
/* Got a match. Skip host name. */ |
/* Got a match. Skip host name. */ |