summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/auth2.c b/auth2.c
index 929e87baa..b564a8f3c 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2.c,v 1.77 2001/12/19 07:18:56 deraadt Exp $"); 26RCSID("$OpenBSD: auth2.c,v 1.78 2001/12/20 22:50:24 djm Exp $");
27 27
28#include <openssl/evp.h> 28#include <openssl/evp.h>
29 29
@@ -69,9 +69,9 @@ struct Authmethod {
69 69
70/* protocol */ 70/* protocol */
71 71
72static void input_service_request(int, int, void *); 72static void input_service_request(int, int, u_int32_t, void *);
73static void input_userauth_request(int, int, void *); 73static void input_userauth_request(int, int, u_int32_t, void *);
74static void protocol_error(int, int, void *); 74static void protocol_error(int, int, u_int32_t, void *);
75 75
76/* helper */ 76/* helper */
77static Authmethod *authmethod_lookup(const char *); 77static Authmethod *authmethod_lookup(const char *);
@@ -130,17 +130,17 @@ do_authentication2(void)
130} 130}
131 131
132static void 132static void
133protocol_error(int type, int plen, void *ctxt) 133protocol_error(int type, int plen, u_int32_t seq, void *ctxt)
134{ 134{
135 log("auth: protocol error: type %d plen %d", type, plen); 135 log("auth: protocol error: type %d plen %d", type, plen);
136 packet_start(SSH2_MSG_UNIMPLEMENTED); 136 packet_start(SSH2_MSG_UNIMPLEMENTED);
137 packet_put_int(0); 137 packet_put_int(seq);
138 packet_send(); 138 packet_send();
139 packet_write_wait(); 139 packet_write_wait();
140} 140}
141 141
142static void 142static void
143input_service_request(int type, int plen, void *ctxt) 143input_service_request(int type, int plen, u_int32_t seq, void *ctxt)
144{ 144{
145 Authctxt *authctxt = ctxt; 145 Authctxt *authctxt = ctxt;
146 u_int len; 146 u_int len;
@@ -173,7 +173,7 @@ input_service_request(int type, int plen, void *ctxt)
173} 173}
174 174
175static void 175static void
176input_userauth_request(int type, int plen, void *ctxt) 176input_userauth_request(int type, int plen, u_int32_t seq, void *ctxt)
177{ 177{
178 Authctxt *authctxt = ctxt; 178 Authctxt *authctxt = ctxt;
179 Authmethod *m = NULL; 179 Authmethod *m = NULL;