diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-03-03 03:15:51 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-03-03 14:37:16 +1100 |
commit | 7c856857607112a3dfe6414696bf4c7ab7fb0cb3 (patch) | |
tree | 48c837fc9c9e11d64862d4f54c1a886b54d8721c /monitor_wrap.h | |
parent | 90c4bec8b5f9ec4c003ae4abdf13fc7766f00c8b (diff) |
upstream: switch over to the new authorized_keys options API and
remove the legacy one.
Includes a fairly big refactor of auth2-pubkey.c to retain less state
between key file lines.
feedback and ok markus@
OpenBSD-Commit-ID: dece6cae0f47751b9892080eb13d6625599573df
Diffstat (limited to 'monitor_wrap.h')
-rw-r--r-- | monitor_wrap.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/monitor_wrap.h b/monitor_wrap.h index f5af1e819..762332704 100644 --- a/monitor_wrap.h +++ b/monitor_wrap.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor_wrap.h,v 1.36 2017/12/18 02:25:15 djm Exp $ */ | 1 | /* $OpenBSD: monitor_wrap.h,v 1.37 2018/03/03 03:15:51 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 4 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
@@ -35,6 +35,8 @@ enum mm_keytype { MM_NOKEY, MM_HOSTKEY, MM_USERKEY }; | |||
35 | 35 | ||
36 | struct monitor; | 36 | struct monitor; |
37 | struct Authctxt; | 37 | struct Authctxt; |
38 | struct sshkey; | ||
39 | struct sshauthopt; | ||
38 | 40 | ||
39 | void mm_log_handler(LogLevel, const char *, void *); | 41 | void mm_log_handler(LogLevel, const char *, void *); |
40 | int mm_is_monitor(void); | 42 | int mm_is_monitor(void); |
@@ -44,10 +46,11 @@ int mm_key_sign(struct sshkey *, u_char **, u_int *, const u_char *, u_int, | |||
44 | void mm_inform_authserv(char *, char *); | 46 | void mm_inform_authserv(char *, char *); |
45 | struct passwd *mm_getpwnamallow(const char *); | 47 | struct passwd *mm_getpwnamallow(const char *); |
46 | char *mm_auth2_read_banner(void); | 48 | char *mm_auth2_read_banner(void); |
47 | int mm_auth_password(struct Authctxt *, char *); | 49 | int mm_auth_password(struct ssh *, char *); |
48 | int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *, | 50 | int mm_key_allowed(enum mm_keytype, const char *, const char *, struct sshkey *, |
49 | int); | 51 | int, struct sshauthopt **); |
50 | int mm_user_key_allowed(struct passwd *, struct sshkey *, int); | 52 | int mm_user_key_allowed(struct ssh *, struct passwd *, struct sshkey *, int, |
53 | struct sshauthopt **); | ||
51 | int mm_hostbased_key_allowed(struct passwd *, const char *, | 54 | int mm_hostbased_key_allowed(struct passwd *, const char *, |
52 | const char *, struct sshkey *); | 55 | const char *, struct sshkey *); |
53 | int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t, | 56 | int mm_sshkey_verify(const struct sshkey *, const u_char *, size_t, |