From 4a1ebcf88899becd5c02877d74688206c9b742c8 Mon Sep 17 00:00:00 2001 From: Unknown User d91-jda Date: Sun, 5 May 1996 03:58:28 +0000 Subject: [PATCH] Stop encrypting on quit. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@488 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/cmds.c | 1 + appl/ftp/ftp/krb4.c | 6 ++++++ appl/ftp/ftp/krb4.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 443d866ad..3981cdeeb 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -1457,6 +1457,7 @@ disconnect(int argc, char **argv) } cout = NULL; connected = 0; + krb4_quit(); data = -1; if (!proxy) { macnum = 0; diff --git a/appl/ftp/ftp/krb4.c b/appl/ftp/ftp/krb4.c index 1a56150f7..c13719cac 100644 --- a/appl/ftp/ftp/krb4.c +++ b/appl/ftp/ftp/krb4.c @@ -420,6 +420,12 @@ do_klogin(char *host) return 0; } +void +krb4_quit(void) +{ + auth_complete = 0; +} + int krb4_write_enc(FILE *F, char *fmt, va_list ap) { int len; diff --git a/appl/ftp/ftp/krb4.h b/appl/ftp/ftp/krb4.h index bd6fcfb2b..a0f3e35db 100644 --- a/appl/ftp/ftp/krb4.h +++ b/appl/ftp/ftp/krb4.h @@ -9,4 +9,6 @@ void sec_prot(int, char**); void kauth(int, char **); +void krb4_quit(void); + #endif /* __KRB4_H__ */