version 1.94, 2001/02/08 10:47:04 |
version 1.95, 2001/02/08 19:30:52 |
|
|
* identification string. |
* identification string. |
*/ |
*/ |
void |
void |
ssh_exchange_identification() |
ssh_exchange_identification(void) |
{ |
{ |
char buf[256], remote_version[256]; /* must be same size! */ |
char buf[256], remote_version[256]; /* must be same size! */ |
int remote_major, remote_minor, i, mismatch; |
int remote_major, remote_minor, i, mismatch; |
|
|
if (isatty(STDIN_FILENO)) |
if (isatty(STDIN_FILENO)) |
f = stdin; |
f = stdin; |
else |
else |
f = fopen("/dev/tty", "rw"); |
f = fopen(_PATH_TTY, "rw"); |
|
|
if (f == NULL) |
if (f == NULL) |
return 0; |
return 0; |