xref: /titanic_41/usr/src/cmd/ssh/include/auth2-pam.h (revision 355b4669e025ff377602b6fc7caaf30dbc218371)
1 /* $Id: auth2-pam.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2 /*
3  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
4  * Use is subject to license terms.
5  */
6 
7 #ifndef	_AUTH2_PAM_H
8 #define	_AUTH2_PAM_H
9 
10 #pragma ident	"%Z%%M%	%I%	%E% SMI"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #include "includes.h"
17 #ifdef USE_PAM
18 
19 typedef struct Convctxt Convctxt;
20 
21 struct Convctxt {
22 	int abandoned, finished, num_received, num_expected;
23 	int *prompts;
24 	struct pam_response *responses;
25 };
26 
27 int	kbdint_pam_abandon_chk(Authctxt *authctxt, Authmethod *method);
28 void	kbdint_pam_abandon(Authctxt *authctxt, Authmethod *method);
29 
30 void	auth2_pam(Authctxt *authctxt);
31 
32 #endif /* USE_PAM */
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* _AUTH2_PAM_H */
39