version 1.19, 2005/02/27 15:46:42 |
version 1.20, 2009/04/28 06:46:03 |
|
|
{ |
{ |
unsigned char *p; |
unsigned char *p; |
|
|
if (opt_reply) { |
p = (unsigned char *)realloc(opt_reply, OPT_REPLY_SIZE); |
p = (unsigned char *)realloc(opt_reply, OPT_REPLY_SIZE); |
if (p == NULL) |
if (p == NULL) |
free(opt_reply); |
free(opt_reply); |
|
} else |
|
p = (unsigned char *)malloc(OPT_REPLY_SIZE); |
|
opt_reply = p; |
opt_reply = p; |
if (opt_reply == NULL) { |
if (opt_reply == NULL) { |
/*@*/ printf("env_opt_start: malloc()/realloc() failed!!!\n"); |
/*@*/ printf("env_opt_start: realloc() failed!!!\n"); |
opt_reply = opt_replyp = opt_replyend = NULL; |
opt_reply = opt_replyp = opt_replyend = NULL; |
return; |
return; |
} |
} |
|
|
telnet(user) |
telnet(user) |
char *user; |
char *user; |
{ |
{ |
int printed_encrypt = 0; |
|
|
|
sys_telnet_init(); |
sys_telnet_init(); |
|
|
#if defined(AUTHENTICATION) || defined(ENCRYPTION) |
#if defined(AUTHENTICATION) || defined(ENCRYPTION) |
|
|
if (wantencryption) { |
if (wantencryption) { |
extern int auth_has_failed; |
extern int auth_has_failed; |
time_t timeout = time(0) + 60; |
time_t timeout = time(0) + 60; |
|
int printed_encrypt = 0; |
|
|
send_do(TELOPT_ENCRYPT, 1); |
send_do(TELOPT_ENCRYPT, 1); |
send_will(TELOPT_ENCRYPT, 1); |
send_will(TELOPT_ENCRYPT, 1); |