Minor fixup

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@261 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-02-11 17:22:54 +00:00
parent 7d69e8a197
commit f565996a72
3 changed files with 13 additions and 11 deletions

View File

@@ -496,8 +496,11 @@ EncryptAutoDec(int on)
void
encrypt_not(void)
{
if(encrypt_verbose)
printf("[ Connection is NOT encrypted ]\r\n");
if (encrypt_verbose)
printf("[ Connection is NOT encrypted ]\r\n");
else
printf("\r\n*** Connection not encrypted! "
"Communication may be eavesdropped. ***\r\n");
}
/*

View File

@@ -255,7 +255,6 @@ int main(int argc, char **argv)
}
}
encrypt_verbose_quiet(1);
if (autologin == -1) { /* esc@magic.fi; force */
#if defined(AUTHENTICATION)
autologin = 1;

View File

@@ -361,16 +361,16 @@ char *line = Xline;
char *myline = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
#endif /* CRAY */
static char* k_ptsname(int p)
#ifndef HAVE_PTSNAME
static char *ptsname(int fd)
{
#ifdef HAVE_PTSNAME
return ptsname(p);
#endif
#ifdef HAVE_TTYNAME
return ttyname(p);
#endif
return ttyname(fd);
#else
return NULL;
#endif
}
#endif
int getpty(int *ptynum)
{
@@ -400,7 +400,7 @@ int getpty(int *ptynum)
#ifdef HAVE_UNLOCKPT
unlockpt(p);
#endif
strcpy(line, k_ptsname(p));
strcpy(line, ptsname(p));
return p;
}
}
@@ -1247,7 +1247,7 @@ startslave(char *host, int autologin, char *autoname)
{
char *tbuf =
"\r\n*** Connection not encrypted! "
"Communication may be eavesdropped.***\r\n";
"Communication may be eavesdropped. ***\r\n";
#ifdef ENCRYPTION
if (encrypt_output == 0 || decrypt_input == 0)
#endif