Print message about not encrypting when receiving WONT or DONT encrypt.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@247 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -69,6 +69,7 @@ Encryptions *findencryption P((int));
|
||||
void encrypt_send_supprt P((void));
|
||||
void encrypt_auto P((int));
|
||||
void decrypt_auto P((int));
|
||||
void encrypt_not P((void));
|
||||
void encrypt_is P((unsigned char *, int));
|
||||
void encrypt_reply P((unsigned char *, int));
|
||||
void encrypt_start_input P((int));
|
||||
|
@@ -498,6 +498,15 @@ EncryptAutoDec(on)
|
||||
return(1);
|
||||
}
|
||||
|
||||
/* Called when we receive a WONT or a DONT ENCRYPT after we sent a DO
|
||||
encrypt */
|
||||
void
|
||||
encrypt_not(void)
|
||||
{
|
||||
if(encrypt_verbose)
|
||||
printf("[ Connection is NOT encrypted ]\r\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Called when ENCRYPT SUPPORT is received.
|
||||
*/
|
||||
|
@@ -376,9 +376,8 @@ willoption(option)
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
wontoption(option)
|
||||
int option;
|
||||
void
|
||||
wontoption(int option)
|
||||
{
|
||||
if (do_dont_resp[option]) {
|
||||
--do_dont_resp[option];
|
||||
@@ -407,6 +406,11 @@ wontoption(option)
|
||||
set_my_state_dont(option);
|
||||
return; /* Never reply to TM will's/wont's */
|
||||
|
||||
#ifdef ENCRYPTION
|
||||
case TELOPT_ENCRYPT:
|
||||
encrypt_not();
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -535,9 +539,8 @@ dooption(option)
|
||||
set_my_state_will(option);
|
||||
}
|
||||
|
||||
static void
|
||||
dontoption(option)
|
||||
int option;
|
||||
static void
|
||||
dontoption(int option)
|
||||
{
|
||||
|
||||
if (will_wont_resp[option]) {
|
||||
@@ -560,6 +563,11 @@ dontoption(option)
|
||||
send_will(TELOPT_OLD_ENVIRON, 1);
|
||||
telopt_environ = TELOPT_OLD_ENVIRON;
|
||||
break;
|
||||
#endif
|
||||
#ifdef ENCRYPTION
|
||||
case TELOPT_ENCRYPT:
|
||||
encrypt_not();
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
/* we always accept a DONT */
|
||||
|
Reference in New Issue
Block a user