summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/auth.h b/auth.h
index 2d1f1e9b9..b9585d3af 100644
--- a/auth.h
+++ b/auth.h
@@ -21,11 +21,13 @@
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 * 23 *
24 * $OpenBSD: auth.h,v 1.17 2001/05/20 17:20:35 markus Exp $ 24 * $OpenBSD: auth.h,v 1.18 2001/06/23 00:20:58 markus Exp $
25 */ 25 */
26#ifndef AUTH_H 26#ifndef AUTH_H
27#define AUTH_H 27#define AUTH_H
28 28
29#include "key.h"
30#include "hostfile.h"
29#include <openssl/rsa.h> 31#include <openssl/rsa.h>
30 32
31#ifdef HAVE_LOGIN_CAP 33#ifdef HAVE_LOGIN_CAP
@@ -159,7 +161,6 @@ int verify_response(Authctxt *authctxt, const char *response);
159 161
160struct passwd * auth_get_user(void); 162struct passwd * auth_get_user(void);
161 163
162
163/* expand a filename - return buffer is allocated by xmalloc */ 164/* expand a filename - return buffer is allocated by xmalloc */
164char *expand_filename(const char *template, struct passwd *pw); 165char *expand_filename(const char *template, struct passwd *pw);
165char *authorized_keys_file(struct passwd *pw); 166char *authorized_keys_file(struct passwd *pw);
@@ -169,6 +170,11 @@ char *authorized_keys_file2(struct passwd *pw);
169int 170int
170secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen); 171secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen);
171 172
173/* helper for hostbased auth */
174HostStatus
175check_key_in_hostfiles(struct passwd *pw, Key *key, const char *host,
176 const char *sysfile, const char *userfile);
177
172#define AUTH_FAIL_MAX 6 178#define AUTH_FAIL_MAX 6
173#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) 179#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2)
174#define AUTH_FAIL_MSG "Too many authentication failures for %.100s" 180#define AUTH_FAIL_MSG "Too many authentication failures for %.100s"