diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 **); | |||
121 | int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *); | 122 | int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *); |
122 | int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); | 123 | int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); |
123 | int user_key_allowed(struct passwd *, Key *); | 124 | int user_key_allowed(struct passwd *, Key *); |
125 | void pubkey_auth_info(Authctxt *, const Key *, const char *, ...) | ||
126 | __attribute__((__format__ (printf, 3, 4))); | ||
124 | 127 | ||
125 | struct stat; | 128 | struct stat; |
126 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, | 129 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, |
@@ -148,8 +151,10 @@ void disable_forwarding(void); | |||
148 | void do_authentication(Authctxt *); | 151 | void do_authentication(Authctxt *); |
149 | void do_authentication2(Authctxt *); | 152 | void do_authentication2(Authctxt *); |
150 | 153 | ||
151 | void auth_log(Authctxt *, int, int, const char *, const char *, | 154 | void auth_info(Authctxt *authctxt, const char *, ...) |
152 | const char *); | 155 | __attribute__((__format__ (printf, 2, 3))) |
156 | __attribute__((__nonnull__ (2))); | ||
157 | void auth_log(Authctxt *, int, int, const char *, const char *); | ||
153 | void userauth_finish(Authctxt *, int, const char *, const char *); | 158 | void userauth_finish(Authctxt *, int, const char *, const char *); |
154 | int auth_root_allowed(const char *); | 159 | int auth_root_allowed(const char *); |
155 | 160 | ||
@@ -157,8 +162,9 @@ void userauth_send_banner(const char *); | |||
157 | 162 | ||
158 | char *auth2_read_banner(void); | 163 | char *auth2_read_banner(void); |
159 | int auth2_methods_valid(const char *, int); | 164 | int auth2_methods_valid(const char *, int); |
160 | int auth2_update_methods_lists(Authctxt *, const char *); | 165 | int auth2_update_methods_lists(Authctxt *, const char *, const char *); |
161 | int auth2_setup_methods_lists(Authctxt *); | 166 | int auth2_setup_methods_lists(Authctxt *); |
167 | int auth2_method_allowed(Authctxt *, const char *, const char *); | ||
162 | 168 | ||
163 | void privsep_challenge_enable(void); | 169 | void 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 */ |
194 | Key *get_hostkey_by_index(int); | 200 | Key *get_hostkey_by_index(int); |
201 | Key *get_hostkey_public_by_index(int); | ||
195 | Key *get_hostkey_public_by_type(int); | 202 | Key *get_hostkey_public_by_type(int); |
196 | Key *get_hostkey_private_by_type(int); | 203 | Key *get_hostkey_private_by_type(int); |
197 | int get_hostkey_index(Key *); | 204 | int get_hostkey_index(Key *); |
198 | int ssh1_session_key(BIGNUM *); | 205 | int ssh1_session_key(BIGNUM *); |
206 | void 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 */ |
201 | void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 209 | void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); |