summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-07 11:47:26 +0100
committerColin Watson <cjwatson@debian.org>2013-05-07 11:47:26 +0100
commit2ea3f720daeb1ca9f765365fce3a9546961fe624 (patch)
treec4fb7d1f51fa51e7677232de806aae150e29e2ac /auth.h
parentf5efcd3450bbf8261915e0c4a6f851229dddaa79 (diff)
parentecebda56da46a03dafff923d91c382f31faa9eec (diff)
* New upstream release (http://www.openssh.com/txt/release-6.2).
- Add support for multiple required authentication in SSH protocol 2 via an AuthenticationMethods option (closes: #195716). - Fix Sophie Germain formula in moduli(5) (closes: #698612). - Update ssh-copy-id to Phil Hands' greatly revised version (closes: #99785, #322228, #620428; LP: #518883, #835901, #1074798).
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/auth.h b/auth.h
index 568212f9d..c2328f05b 100644
--- a/auth.h
+++ b/auth.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth.h,v 1.69 2011/05/23 03:30:07 djm Exp $ */ 1/* $OpenBSD: auth.h,v 1.72 2012/12/02 20:34:09 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -65,6 +65,8 @@ struct Authctxt {
65#ifdef BSD_AUTH 65#ifdef BSD_AUTH
66 auth_session_t *as; 66 auth_session_t *as;
67#endif 67#endif
68 char **auth_methods; /* modified from server config */
69 u_int num_auth_methods;
68#ifdef KRB5 70#ifdef KRB5
69 krb5_context krb5_ctx; 71 krb5_context krb5_ctx;
70 krb5_ccache krb5_fwd_ccache; 72 krb5_ccache krb5_fwd_ccache;
@@ -121,6 +123,10 @@ int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *);
121int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); 123int hostbased_key_allowed(struct passwd *, const char *, char *, Key *);
122int user_key_allowed(struct passwd *, Key *); 124int user_key_allowed(struct passwd *, Key *);
123 125
126struct stat;
127int auth_secure_path(const char *, struct stat *, const char *, uid_t,
128 char *, size_t);
129
124#ifdef KRB5 130#ifdef KRB5
125int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); 131int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *);
126int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); 132int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt);
@@ -143,12 +149,17 @@ void disable_forwarding(void);
143void do_authentication(Authctxt *); 149void do_authentication(Authctxt *);
144void do_authentication2(Authctxt *); 150void do_authentication2(Authctxt *);
145 151
146void auth_log(Authctxt *, int, char *, char *); 152void auth_log(Authctxt *, int, int, const char *, const char *,
147void userauth_finish(Authctxt *, int, char *); 153 const char *);
154void userauth_finish(Authctxt *, int, const char *, const char *);
155int auth_root_allowed(const char *);
156
148void userauth_send_banner(const char *); 157void userauth_send_banner(const char *);
149int auth_root_allowed(char *);
150 158
151char *auth2_read_banner(void); 159char *auth2_read_banner(void);
160int auth2_methods_valid(const char *, int);
161int auth2_update_methods_lists(Authctxt *, const char *);
162int auth2_setup_methods_lists(Authctxt *);
152 163
153void privsep_challenge_enable(void); 164void privsep_challenge_enable(void);
154 165