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