summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/auth-pam.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/auth-pam.h')
-rw-r--r--crypto/openssh/auth-pam.h34
1 files changed, 9 insertions, 25 deletions
diff --git a/crypto/openssh/auth-pam.h b/crypto/openssh/auth-pam.h
index 194f7e8..6b1f35ad 100644
--- a/crypto/openssh/auth-pam.h
+++ b/crypto/openssh/auth-pam.h
@@ -1,38 +1,22 @@
-/*
- * OpenSSH PAM authentication support.
- *
- * $FreeBSD$
- */
-#ifndef AUTH_PAM_H
-#define AUTH_PAM_H
+/* $Id: auth-pam.h,v 1.12 2002/04/04 19:02:28 stevesk Exp $ */
+
#include "includes.h"
#ifdef USE_PAM
#include <pwd.h> /* For struct passwd */
-void start_pam(struct passwd *pw);
+void start_pam(const char *user);
void finish_pam(void);
-int auth_pam_password(struct passwd *pw, const char *password);
+int auth_pam_password(Authctxt *authctxt, const char *password);
char **fetch_pam_environment(void);
+int do_pam_authenticate(int flags);
int do_pam_account(char *username, char *remote_user);
void do_pam_session(char *username, const char *ttyname);
-void do_pam_setcred(void);
+void do_pam_setcred(int init);
void print_pam_messages(void);
-int pam_password_change_required(void);
+int is_pam_password_change_required(void);
void do_pam_chauthtok(void);
-
-struct inverted_pam_cookie {
- int state; /* Which state have we reached? */
- pid_t pid; /* PID of child process */
-
- /* Only valid in state STATE_CONV */
- int num_msg; /* Number of messages */
- struct pam_message **msg; /* Message structures */
- struct pam_response **resp; /* Response structures */
- struct inverted_pam_userdata *userdata;
-};
-void ipam_free_cookie(struct inverted_pam_cookie *cookie);
-struct inverted_pam_cookie *ipam_start_auth(const char *, const char *);
+void do_pam_set_conv(struct pam_conv *);
+void message_cat(char **p, const char *a);
#endif /* USE_PAM */
-#endif /* AUTH_PAM_H */
OpenPOWER on IntegriCloud