summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-08-15 23:04:50 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-08-15 23:04:50 +0000
commitc9a26364205602dab08fa6740185ad2a41550ea2 (patch)
tree2a4956429b07a364cbc6bad03a3f996c3fe8c18e /authfd.c
parentd0ff40847d8c84b2cad534080b97f81e0ec2deba (diff)
downloadopenssh-git-c9a26364205602dab08fa6740185ad2a41550ea2.tar.gz
- markus@cvs.openbsd.org 2001/08/07 10:37:46
[authfd.c authfd.h] extended failure messages from galb@vandyke.com
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/authfd.c b/authfd.c
index da4a32e0..2eb4513d 100644
--- a/authfd.c
+++ b/authfd.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: authfd.c,v 1.43 2001/08/01 22:03:33 markus Exp $");
+RCSID("$OpenBSD: authfd.c,v 1.44 2001/08/07 10:37:46 markus Exp $");
#include <openssl/evp.h>
@@ -58,7 +58,8 @@ int decode_reply(int type);
/* macro to check for "agent failure" message */
#define agent_failed(x) \
- ((x == SSH_AGENT_FAILURE) || (x == SSH_COM_AGENT2_FAILURE))
+ ((x == SSH_AGENT_FAILURE) || (x == SSH_COM_AGENT2_FAILURE) || \
+ (x == SSH2_AGENT_FAILURE))
/* Returns the number of the authentication fd, or -1 if there is none. */
@@ -585,6 +586,7 @@ decode_reply(int type)
switch (type) {
case SSH_AGENT_FAILURE:
case SSH_COM_AGENT2_FAILURE:
+ case SSH2_AGENT_FAILURE:
log("SSH_AGENT_FAILURE");
return 0;
case SSH_AGENT_SUCCESS: