version 1.103, 2022/05/27 05:01:25 |
version 1.104, 2022/05/27 05:02:46 |
|
|
#define AUTH_H |
#define AUTH_H |
|
|
#include <signal.h> |
#include <signal.h> |
|
#include <stdio.h> |
|
|
#include <bsd_auth.h> |
#include <bsd_auth.h> |
#ifdef KRB5 |
#ifdef KRB5 |
|
|
struct ssh; |
struct ssh; |
struct sshbuf; |
struct sshbuf; |
struct sshkey; |
struct sshkey; |
|
struct sshkey_cert; |
struct sshauthopt; |
struct sshauthopt; |
|
|
typedef struct Authctxt Authctxt; |
typedef struct Authctxt Authctxt; |
|
|
const struct sshauthopt *auth_options(struct ssh *); |
const struct sshauthopt *auth_options(struct ssh *); |
int auth_activate_options(struct ssh *, struct sshauthopt *); |
int auth_activate_options(struct ssh *, struct sshauthopt *); |
void auth_restrict_session(struct ssh *); |
void auth_restrict_session(struct ssh *); |
int auth_authorise_keyopts(struct passwd *pw, struct sshauthopt *, int, |
|
const char *, const char *, const char *); |
|
void auth_log_authopts(const char *, const struct sshauthopt *, int); |
void auth_log_authopts(const char *, const struct sshauthopt *, int); |
|
|
/* debug messages during authentication */ |
/* debug messages during authentication */ |
|
|
void auth_debug_reset(void); |
void auth_debug_reset(void); |
|
|
struct passwd *fakepw(void); |
struct passwd *fakepw(void); |
|
|
|
/* auth2-pubkeyfile.c */ |
|
int auth_authorise_keyopts(struct passwd *, struct sshauthopt *, int, |
|
const char *, const char *, const char *); |
|
int auth_check_principals_line(char *, const struct sshkey_cert *, |
|
const char *, struct sshauthopt **); |
|
int auth_process_principals(FILE *, const char *, |
|
const struct sshkey_cert *, struct sshauthopt **); |
|
int auth_check_authkey_line(struct passwd *, struct sshkey *, |
|
char *, const char *, const char *, const char *, struct sshauthopt **); |
|
int auth_check_authkeys_file(struct passwd *, FILE *, char *, |
|
struct sshkey *, const char *, const char *, struct sshauthopt **); |
|
|
#endif |
#endif |