version 1.17, 2001/05/20 17:20:35 |
version 1.18, 2001/06/23 00:20:58 |
|
|
#ifndef AUTH_H |
#ifndef AUTH_H |
#define AUTH_H |
#define AUTH_H |
|
|
|
#include "key.h" |
|
#include "hostfile.h" |
#include <openssl/rsa.h> |
#include <openssl/rsa.h> |
|
|
#ifdef HAVE_LOGIN_CAP |
#ifdef HAVE_LOGIN_CAP |
|
|
|
|
struct passwd * auth_get_user(void); |
struct passwd * auth_get_user(void); |
|
|
|
|
/* expand a filename - return buffer is allocated by xmalloc */ |
/* expand a filename - return buffer is allocated by xmalloc */ |
char *expand_filename(const char *template, struct passwd *pw); |
char *expand_filename(const char *template, struct passwd *pw); |
char *authorized_keys_file(struct passwd *pw); |
char *authorized_keys_file(struct passwd *pw); |
|
|
/* check a file and the path to it */ |
/* check a file and the path to it */ |
int |
int |
secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen); |
secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen); |
|
|
|
/* helper for hostbased auth */ |
|
HostStatus |
|
check_key_in_hostfiles(struct passwd *pw, Key *key, const char *host, |
|
const char *sysfile, const char *userfile); |
|
|
#define AUTH_FAIL_MAX 6 |
#define AUTH_FAIL_MAX 6 |
#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |
#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |