diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.78 2014/07/03 11:16:55 djm Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.79 2014/12/22 07:51:30 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -42,6 +42,8 @@ | |||
42 | #include <krb5.h> | 42 | #include <krb5.h> |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | struct sshkey; | ||
46 | |||
45 | typedef struct Authctxt Authctxt; | 47 | typedef struct Authctxt Authctxt; |
46 | typedef struct Authmethod Authmethod; | 48 | typedef struct Authmethod Authmethod; |
47 | typedef struct KbdintDevice KbdintDevice; | 49 | typedef struct KbdintDevice KbdintDevice; |
@@ -75,6 +77,9 @@ struct Authctxt { | |||
75 | #endif | 77 | #endif |
76 | Buffer *loginmsg; | 78 | Buffer *loginmsg; |
77 | void *methoddata; | 79 | void *methoddata; |
80 | |||
81 | struct sshkey **prev_userkeys; | ||
82 | u_int nprev_userkeys; | ||
78 | }; | 83 | }; |
79 | /* | 84 | /* |
80 | * Every authentication method has to handle authentication requests for | 85 | * Every authentication method has to handle authentication requests for |
@@ -123,6 +128,8 @@ int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); | |||
123 | int user_key_allowed(struct passwd *, Key *); | 128 | int user_key_allowed(struct passwd *, Key *); |
124 | void pubkey_auth_info(Authctxt *, const Key *, const char *, ...) | 129 | void pubkey_auth_info(Authctxt *, const Key *, const char *, ...) |
125 | __attribute__((__format__ (printf, 3, 4))); | 130 | __attribute__((__format__ (printf, 3, 4))); |
131 | void auth2_record_userkey(Authctxt *, struct sshkey *); | ||
132 | int auth2_userkey_already_used(Authctxt *, struct sshkey *); | ||
126 | 133 | ||
127 | struct stat; | 134 | struct stat; |
128 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, | 135 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, |