diff options
author | markus@openbsd.org <markus@openbsd.org> | 2017-05-30 08:52:19 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-05-31 10:47:31 +1000 |
commit | 54d90ace1d3535b44d92a8611952dc109a74a031 (patch) | |
tree | 1b5ff69321b88b32fba058fe2c966bf177c95b28 /auth.h | |
parent | c221219b1fbee47028dcaf66613f4f8d6b7640e9 (diff) |
upstream commit
switch from Key typedef with struct sshkey; ok djm@
Upstream-ID: 3067d33e04efbe5131ce8f70668c47a58e5b7a1f
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.89 2016/08/13 17:47:41 markus Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.90 2017/05/30 08:52:19 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -117,9 +117,10 @@ auth_rhosts2(struct passwd *, const char *, const char *, const char *); | |||
117 | 117 | ||
118 | int auth_password(Authctxt *, const char *); | 118 | int auth_password(Authctxt *, const char *); |
119 | 119 | ||
120 | int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); | 120 | int hostbased_key_allowed(struct passwd *, const char *, char *, |
121 | int user_key_allowed(struct passwd *, Key *, int); | 121 | struct sshkey *); |
122 | void pubkey_auth_info(Authctxt *, const Key *, const char *, ...) | 122 | int user_key_allowed(struct passwd *, struct sshkey *, int); |
123 | void pubkey_auth_info(Authctxt *, const struct sshkey *, const char *, ...) | ||
123 | __attribute__((__format__ (printf, 3, 4))); | 124 | __attribute__((__format__ (printf, 3, 4))); |
124 | void auth2_record_userkey(Authctxt *, struct sshkey *); | 125 | void auth2_record_userkey(Authctxt *, struct sshkey *); |
125 | int auth2_userkey_already_used(Authctxt *, struct sshkey *); | 126 | int auth2_userkey_already_used(Authctxt *, struct sshkey *); |
@@ -182,22 +183,22 @@ char *authorized_principals_file(struct passwd *); | |||
182 | 183 | ||
183 | FILE *auth_openkeyfile(const char *, struct passwd *, int); | 184 | FILE *auth_openkeyfile(const char *, struct passwd *, int); |
184 | FILE *auth_openprincipals(const char *, struct passwd *, int); | 185 | FILE *auth_openprincipals(const char *, struct passwd *, int); |
185 | int auth_key_is_revoked(Key *); | 186 | int auth_key_is_revoked(struct sshkey *); |
186 | 187 | ||
187 | const char *auth_get_canonical_hostname(struct ssh *, int); | 188 | const char *auth_get_canonical_hostname(struct ssh *, int); |
188 | 189 | ||
189 | HostStatus | 190 | HostStatus |
190 | check_key_in_hostfiles(struct passwd *, Key *, const char *, | 191 | check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *, |
191 | const char *, const char *); | 192 | const char *, const char *); |
192 | 193 | ||
193 | /* hostkey handling */ | 194 | /* hostkey handling */ |
194 | Key *get_hostkey_by_index(int); | 195 | struct sshkey *get_hostkey_by_index(int); |
195 | Key *get_hostkey_public_by_index(int, struct ssh *); | 196 | struct sshkey *get_hostkey_public_by_index(int, struct ssh *); |
196 | Key *get_hostkey_public_by_type(int, int, struct ssh *); | 197 | struct sshkey *get_hostkey_public_by_type(int, int, struct ssh *); |
197 | Key *get_hostkey_private_by_type(int, int, struct ssh *); | 198 | struct sshkey *get_hostkey_private_by_type(int, int, struct ssh *); |
198 | int get_hostkey_index(Key *, int, struct ssh *); | 199 | int get_hostkey_index(struct sshkey *, int, struct ssh *); |
199 | int sshd_hostkey_sign(Key *, Key *, u_char **, size_t *, | 200 | int sshd_hostkey_sign(struct sshkey *, struct sshkey *, u_char **, |
200 | const u_char *, size_t, const char *, u_int); | 201 | size_t *, const u_char *, size_t, const char *, u_int); |
201 | 202 | ||
202 | /* debug messages during authentication */ | 203 | /* debug messages during authentication */ |
203 | void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 204 | void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2))); |