summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/appl/telnet/libtelnet/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/appl/telnet/libtelnet/auth.c')
-rw-r--r--crypto/heimdal/appl/telnet/libtelnet/auth.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/heimdal/appl/telnet/libtelnet/auth.c b/crypto/heimdal/appl/telnet/libtelnet/auth.c
index d791128..cbb7a78 100644
--- a/crypto/heimdal/appl/telnet/libtelnet/auth.c
+++ b/crypto/heimdal/appl/telnet/libtelnet/auth.c
@@ -53,7 +53,7 @@
#include <config.h>
-RCSID("$Id: auth.c,v 1.23 2000/01/18 03:09:34 assar Exp $");
+RCSID("$Id: auth.c,v 1.25 2002/01/18 12:58:48 joda Exp $");
#if defined(AUTHENTICATION)
#include <stdio.h>
@@ -100,6 +100,8 @@ extern rsaencpwd_printsub();
#endif
int auth_debug_mode = 0;
+int auth_has_failed = 0;
+int auth_enable_encrypt = 0;
static const char *Name = "Noname";
static int Server = 0;
static Authenticator *authenticated = 0;
@@ -468,6 +470,7 @@ auth_send(unsigned char *data, int cnt)
if (auth_debug_mode)
printf(">>>%s: Sent failure message\r\n", Name);
auth_finished(0, AUTH_REJECT);
+ auth_has_failed = 1;
#ifdef KANNAN
/*
* We requested strong authentication, however no mechanisms worked.
@@ -646,7 +649,7 @@ auth_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
buf[buflen-2] = '*';
buflen -= 2;
for (; cnt > 0; cnt--, data++) {
- snprintf(tbuf, sizeof(tbuf), " %d", *data);
+ snprintf((char*)tbuf, sizeof(tbuf), " %d", *data);
for (cp = tbuf; *cp && buflen > 0; --buflen)
*buf++ = *cp++;
if (buflen <= 0)
OpenPOWER on IntegriCloud