]> andersk Git - openssh.git/blobdiff - auth.h
- markus@cvs.openbsd.org 2002/06/08 05:07:56
[openssh.git] / auth.h
diff --git a/auth.h b/auth.h
index a336926fc0bce29e8348f75b3babbab860c598d9..d98547d02ab1bbef9260f00122b31aa767ce6455 100644 (file)
--- a/auth.h
+++ b/auth.h
@@ -1,4 +1,4 @@
-/*     $OpenBSD: auth.h,v 1.35 2002/03/19 10:35:39 markus Exp $        */
+/*     $OpenBSD: auth.h,v 1.39 2002/05/31 11:35:15 markus Exp $        */
 
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
@@ -43,6 +43,7 @@
 #endif
 
 typedef struct Authctxt Authctxt;
+typedef struct Authmethod Authmethod;
 typedef struct KbdintDevice KbdintDevice;
 
 struct Authctxt {
@@ -71,6 +72,12 @@ struct Authctxt {
 #endif
 };
 
+struct Authmethod {
+       char    *name;
+       int     (*userauth)(Authctxt *authctxt);
+       int     *enabled;
+};
+
 /*
  * Keyboard interactive device:
  * init_ctx    returns: non NULL upon success
@@ -136,6 +143,8 @@ void        auth_log(Authctxt *, int, char *, char *);
 void   userauth_finish(Authctxt *, int, char *);
 int    auth_root_allowed(char *);
 
+char   *auth2_read_banner(void);
+
 void   privsep_challenge_enable(void);
 
 int    auth2_challenge(Authctxt *, char *);
@@ -170,6 +179,11 @@ Key        *get_hostkey_by_type(int);
 int     get_hostkey_index(Key *);
 int     ssh1_session_key(BIGNUM *);
 
+/* debug messages during authentication */
+void    auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2)));
+void    auth_debug_send(void);
+void    auth_debug_reset(void);
+
 #define AUTH_FAIL_MAX 6
 #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2)
 #define AUTH_FAIL_MSG "Too many authentication failures for %.100s"
This page took 0.055659 seconds and 4 git commands to generate.