diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:50 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:50 +0100 |
commit | baccdb349b31c47cd76fb63211f754ed33a9707e (patch) | |
tree | d03653f975fd4eb8bf71bb0c9d168614401202fa /auth.h | |
parent | 487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (diff) | |
parent | 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb (diff) |
Import openssh_6.8p1.orig.tar.gz
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 21 |
1 files changed, 15 insertions, 6 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.82 2015/02/16 22:13:32 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,9 @@ | |||
42 | #include <krb5.h> | 42 | #include <krb5.h> |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | struct ssh; | ||
46 | struct sshkey; | ||
47 | |||
45 | typedef struct Authctxt Authctxt; | 48 | typedef struct Authctxt Authctxt; |
46 | typedef struct Authmethod Authmethod; | 49 | typedef struct Authmethod Authmethod; |
47 | typedef struct KbdintDevice KbdintDevice; | 50 | typedef struct KbdintDevice KbdintDevice; |
@@ -75,6 +78,9 @@ struct Authctxt { | |||
75 | #endif | 78 | #endif |
76 | Buffer *loginmsg; | 79 | Buffer *loginmsg; |
77 | void *methoddata; | 80 | void *methoddata; |
81 | |||
82 | struct sshkey **prev_userkeys; | ||
83 | u_int nprev_userkeys; | ||
78 | }; | 84 | }; |
79 | /* | 85 | /* |
80 | * Every authentication method has to handle authentication requests for | 86 | * Every authentication method has to handle authentication requests for |
@@ -123,6 +129,8 @@ int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); | |||
123 | int user_key_allowed(struct passwd *, Key *); | 129 | int user_key_allowed(struct passwd *, Key *); |
124 | void pubkey_auth_info(Authctxt *, const Key *, const char *, ...) | 130 | void pubkey_auth_info(Authctxt *, const Key *, const char *, ...) |
125 | __attribute__((__format__ (printf, 3, 4))); | 131 | __attribute__((__format__ (printf, 3, 4))); |
132 | void auth2_record_userkey(Authctxt *, struct sshkey *); | ||
133 | int auth2_userkey_already_used(Authctxt *, struct sshkey *); | ||
126 | 134 | ||
127 | struct stat; | 135 | struct stat; |
128 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, | 136 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, |
@@ -195,12 +203,13 @@ check_key_in_hostfiles(struct passwd *, Key *, const char *, | |||
195 | 203 | ||
196 | /* hostkey handling */ | 204 | /* hostkey handling */ |
197 | Key *get_hostkey_by_index(int); | 205 | Key *get_hostkey_by_index(int); |
198 | Key *get_hostkey_public_by_index(int); | 206 | Key *get_hostkey_public_by_index(int, struct ssh *); |
199 | Key *get_hostkey_public_by_type(int); | 207 | Key *get_hostkey_public_by_type(int, int, struct ssh *); |
200 | Key *get_hostkey_private_by_type(int); | 208 | Key *get_hostkey_private_by_type(int, int, struct ssh *); |
201 | int get_hostkey_index(Key *); | 209 | int get_hostkey_index(Key *, int, struct ssh *); |
202 | int ssh1_session_key(BIGNUM *); | 210 | int ssh1_session_key(BIGNUM *); |
203 | void sshd_hostkey_sign(Key *, Key *, u_char **, u_int *, u_char *, u_int); | 211 | int sshd_hostkey_sign(Key *, Key *, u_char **, size_t *, |
212 | const u_char *, size_t, u_int); | ||
204 | 213 | ||
205 | /* debug messages during authentication */ | 214 | /* debug messages during authentication */ |
206 | void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 215 | void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); |