diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 01:27:35 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 01:27:35 +0000 |
commit | 73ab9ba45d369ef35b0e81590d5d46cc376466c9 (patch) | |
tree | d71733dedcdf95447dc81ffb62db5f2f56150dc6 /auth2.c | |
parent | 2ae18f40a70632eb87eca114980649dae8c476ff (diff) |
- provos@cvs.openbsd.org 2002/03/18 01:12:14
[auth.h auth1.c auth2.c sshd.c]
have the authentication functions return the authentication context
and then do_authenticated; okay millert@
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.86 2002/03/17 20:25:56 provos Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.87 2002/03/18 01:12:14 provos Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | 29 | ||
@@ -109,7 +109,7 @@ Authmethod authmethods[] = { | |||
109 | * loop until authctxt->success == TRUE | 109 | * loop until authctxt->success == TRUE |
110 | */ | 110 | */ |
111 | 111 | ||
112 | void | 112 | Authctxt * |
113 | do_authentication2(void) | 113 | do_authentication2(void) |
114 | { | 114 | { |
115 | Authctxt *authctxt = authctxt_new(); | 115 | Authctxt *authctxt = authctxt_new(); |
@@ -125,7 +125,8 @@ do_authentication2(void) | |||
125 | dispatch_init(&dispatch_protocol_error); | 125 | dispatch_init(&dispatch_protocol_error); |
126 | dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request); | 126 | dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request); |
127 | dispatch_run(DISPATCH_BLOCK, &authctxt->success, authctxt); | 127 | dispatch_run(DISPATCH_BLOCK, &authctxt->success, authctxt); |
128 | do_authenticated(authctxt); | 128 | |
129 | return (authctxt); | ||
129 | } | 130 | } |
130 | 131 | ||
131 | static void | 132 | static void |