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