summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 01:27:35 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 01:27:35 +0000
commit73ab9ba45d369ef35b0e81590d5d46cc376466c9 (patch)
treed71733dedcdf95447dc81ffb62db5f2f56150dc6 /auth2.c
parent2ae18f40a70632eb87eca114980649dae8c476ff (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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/auth2.c b/auth2.c
index c5ab0806..b57fda21 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.86 2002/03/17 20:25:56 provos Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.87 2002/03/18 01:12:14 provos Exp $");
#include <openssl/evp.h>
@@ -109,7 +109,7 @@ Authmethod authmethods[] = {
* loop until authctxt->success == TRUE
*/
-void
+Authctxt *
do_authentication2(void)
{
Authctxt *authctxt = authctxt_new();
@@ -125,7 +125,8 @@ do_authentication2(void)
dispatch_init(&dispatch_protocol_error);
dispatch_set(SSH2_MSG_SERVICE_REQUEST, &input_service_request);
dispatch_run(DISPATCH_BLOCK, &authctxt->success, authctxt);
- do_authenticated(authctxt);
+
+ return (authctxt);
}
static void