diff options
Diffstat (limited to 'security/openssh/files/patch-ae')
-rw-r--r-- | security/openssh/files/patch-ae | 57 |
1 files changed, 14 insertions, 43 deletions
diff --git a/security/openssh/files/patch-ae b/security/openssh/files/patch-ae index f0692ec9487c..33c57f42e6fc 100644 --- a/security/openssh/files/patch-ae +++ b/security/openssh/files/patch-ae @@ -1,43 +1,14 @@ ---- sshconnect.c.orig Fri Nov 19 23:54:54 1999 -+++ sshconnect.c Fri Nov 19 23:56:22 1999 -@@ -1496,6 +1496,40 @@ - return; /* Successful connection. */ - } - -+ /* Support for TIS authentication server obtained from -+ Andre April <Andre.April@cediti.be>. */ -+ if ((supported_authentications & (1 << SSH_AUTH_TIS)) && -+ options.tis_authentication && !options.batch_mode) -+ { -+ char *prompt; -+ debug("Doing TIS authentication."); -+ if (options.cipher == SSH_CIPHER_NONE) -+ log("WARNING: Encryption is disabled! Password will be transmitted in clear text."); -+ packet_start(SSH_CMSG_AUTH_TIS); -+ packet_send(); -+ packet_write_wait(); -+ type = packet_read(&payload_len); -+ if (type == SSH_SMSG_FAILURE) -+ debug("User cannot be identifier on authentication server."); -+ else { -+ if (type != SSH_SMSG_AUTH_TIS_CHALLENGE) -+ packet_disconnect("Protocol error: got %d in response to TIS auth request", type); -+ prompt = packet_get_string(NULL); -+ password = read_passphrase(prompt, 0); -+ packet_start(SSH_CMSG_AUTH_TIS_RESPONSE); -+ packet_put_string(password, strlen(password)); -+ memset(password, 0, strlen(password)); -+ xfree(password); -+ packet_send(); -+ packet_write_wait(); -+ type = packet_read(&payload_len); -+ if (type == SSH_SMSG_SUCCESS) -+ return; -+ if (type != SSH_SMSG_FAILURE) -+ packet_disconnect("Protocol error: got %d in response to TIS auth", type); -+ } -+ } -+ - /* Try password authentication if the server supports it. */ - if ((supported_authentications & (1 << SSH_AUTH_PASSWORD)) && - options.password_authentication && !options.batch_mode) +--- /usr/ports/distfiles/OpenSSH-1.2/src/usr.bin/ssh/login.c Tue Nov 23 18:55:14 1999 ++++ ./login.c Tue Nov 23 19:35:08 1999 +@@ -20,7 +20,11 @@ + #include "includes.h" + RCSID("$Id: login.c,v 1.8 1999/11/23 22:25:54 markus Exp $"); + ++#ifdef __FreeBSD__ ++#include <libutil.h> ++#else + #include <util.h> ++#endif /* __FreeBSD__ */ + #include <utmp.h> + #include "ssh.h" + |