summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/auth.h b/auth.h
index c6fe84722..80f089869 100644
--- a/auth.h
+++ b/auth.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth.h,v 1.72 2012/12/02 20:34:09 djm Exp $ */ 1/* $OpenBSD: auth.h,v 1.76 2013/07/19 07:37:48 markus Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -60,6 +60,7 @@ struct Authctxt {
60 struct passwd *pw; /* set if 'valid' */ 60 struct passwd *pw; /* set if 'valid' */
61 char *style; 61 char *style;
62 void *kbdintctxt; 62 void *kbdintctxt;
63 char *info; /* Extra info for next auth_log */
63 void *jpake_ctx; 64 void *jpake_ctx;
64#ifdef BSD_AUTH 65#ifdef BSD_AUTH
65 auth_session_t *as; 66 auth_session_t *as;
@@ -121,6 +122,8 @@ int auth_rsa_key_allowed(struct passwd *, BIGNUM *, Key **);
121int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *); 122int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *);
122int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); 123int hostbased_key_allowed(struct passwd *, const char *, char *, Key *);
123int user_key_allowed(struct passwd *, Key *); 124int user_key_allowed(struct passwd *, Key *);
125void pubkey_auth_info(Authctxt *, const Key *, const char *, ...)
126 __attribute__((__format__ (printf, 3, 4)));
124 127
125struct stat; 128struct stat;
126int auth_secure_path(const char *, struct stat *, const char *, uid_t, 129int auth_secure_path(const char *, struct stat *, const char *, uid_t,
@@ -148,8 +151,10 @@ void disable_forwarding(void);
148void do_authentication(Authctxt *); 151void do_authentication(Authctxt *);
149void do_authentication2(Authctxt *); 152void do_authentication2(Authctxt *);
150 153
151void auth_log(Authctxt *, int, int, const char *, const char *, 154void auth_info(Authctxt *authctxt, const char *, ...)
152 const char *); 155 __attribute__((__format__ (printf, 2, 3)))
156 __attribute__((__nonnull__ (2)));
157void auth_log(Authctxt *, int, int, const char *, const char *);
153void userauth_finish(Authctxt *, int, const char *, const char *); 158void userauth_finish(Authctxt *, int, const char *, const char *);
154int auth_root_allowed(const char *); 159int auth_root_allowed(const char *);
155 160
@@ -157,8 +162,9 @@ void userauth_send_banner(const char *);
157 162
158char *auth2_read_banner(void); 163char *auth2_read_banner(void);
159int auth2_methods_valid(const char *, int); 164int auth2_methods_valid(const char *, int);
160int auth2_update_methods_lists(Authctxt *, const char *); 165int auth2_update_methods_lists(Authctxt *, const char *, const char *);
161int auth2_setup_methods_lists(Authctxt *); 166int auth2_setup_methods_lists(Authctxt *);
167int auth2_method_allowed(Authctxt *, const char *, const char *);
162 168
163void privsep_challenge_enable(void); 169void privsep_challenge_enable(void);
164 170
@@ -192,10 +198,12 @@ check_key_in_hostfiles(struct passwd *, Key *, const char *,
192 198
193/* hostkey handling */ 199/* hostkey handling */
194Key *get_hostkey_by_index(int); 200Key *get_hostkey_by_index(int);
201Key *get_hostkey_public_by_index(int);
195Key *get_hostkey_public_by_type(int); 202Key *get_hostkey_public_by_type(int);
196Key *get_hostkey_private_by_type(int); 203Key *get_hostkey_private_by_type(int);
197int get_hostkey_index(Key *); 204int get_hostkey_index(Key *);
198int ssh1_session_key(BIGNUM *); 205int ssh1_session_key(BIGNUM *);
206void sshd_hostkey_sign(Key *, Key *, u_char **, u_int *, u_char *, u_int);
199 207
200/* debug messages during authentication */ 208/* debug messages during authentication */
201void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); 209void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2)));