1/* 2 * OpenSSH PAM authentication support. 3 * 4 * $FreeBSD: head/crypto/openssh/auth-pam.h 76287 2001-05-05 01:12:45Z green $ 5 */ 6#ifndef AUTH_PAM_H 7#define AUTH_PAM_H
| 1/* $Id: auth-pam.h,v 1.12 2002/04/04 19:02:28 stevesk Exp $ */ 2
|
8#include "includes.h" 9#ifdef USE_PAM 10
| 3#include "includes.h" 4#ifdef USE_PAM 5
|
11#include "auth.h"
| |
12#include <pwd.h> /* For struct passwd */ 13
| 6#include <pwd.h> /* For struct passwd */ 7
|
14void start_pam(struct passwd *pw);
| 8void start_pam(const char *user);
|
15void finish_pam(void); 16int auth_pam_password(Authctxt *authctxt, const char *password); 17char **fetch_pam_environment(void);
| 9void finish_pam(void); 10int auth_pam_password(Authctxt *authctxt, const char *password); 11char **fetch_pam_environment(void);
|
| 12int do_pam_authenticate(int flags);
|
18int do_pam_account(char *username, char *remote_user); 19void do_pam_session(char *username, const char *ttyname);
| 13int do_pam_account(char *username, char *remote_user); 14void do_pam_session(char *username, const char *ttyname);
|
20void do_pam_setcred(void);
| 15void do_pam_setcred(int init);
|
21void print_pam_messages(void);
| 16void print_pam_messages(void);
|
22int pam_password_change_required(void);
| 17int is_pam_password_change_required(void);
|
23void do_pam_chauthtok(void);
| 18void do_pam_chauthtok(void);
|
| 19void do_pam_set_conv(struct pam_conv *); 20void message_cat(char **p, const char *a);
|
24
| 21
|
25struct inverted_pam_cookie { 26 int state; /* Which state have we reached? */ 27 pid_t pid; /* PID of child process */ 28 29 /* Only valid in state STATE_CONV */ 30 int num_msg; /* Number of messages */ 31 struct pam_message **msg; /* Message structures */ 32 struct pam_response **resp; /* Response structures */ 33 struct inverted_pam_userdata *userdata; 34}; 35void ipam_free_cookie(struct inverted_pam_cookie *cookie); 36struct inverted_pam_cookie *ipam_start_auth(const char *, const char *); 37
| |
38#endif /* USE_PAM */
| 22#endif /* USE_PAM */
|
39#endif /* AUTH_PAM_H */
| |
| |