1*5ca12230Schristos /*- 2*5ca12230Schristos * Copyright (c) 2015 Dag-Erling Smørgrav 3*5ca12230Schristos * All rights reserved. 4*5ca12230Schristos * 5*5ca12230Schristos * Redistribution and use in source and binary forms, with or without 6*5ca12230Schristos * modification, are permitted provided that the following conditions 7*5ca12230Schristos * are met: 8*5ca12230Schristos * 1. Redistributions of source code must retain the above copyright 9*5ca12230Schristos * notice, this list of conditions and the following disclaimer. 10*5ca12230Schristos * 2. Redistributions in binary form must reproduce the above copyright 11*5ca12230Schristos * notice, this list of conditions and the following disclaimer in the 12*5ca12230Schristos * documentation and/or other materials provided with the distribution. 13*5ca12230Schristos * 3. The name of the author may not be used to endorse or promote 14*5ca12230Schristos * products derived from this software without specific prior written 15*5ca12230Schristos * permission. 16*5ca12230Schristos * 17*5ca12230Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18*5ca12230Schristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19*5ca12230Schristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20*5ca12230Schristos * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21*5ca12230Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*5ca12230Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23*5ca12230Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24*5ca12230Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25*5ca12230Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*5ca12230Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*5ca12230Schristos * SUCH DAMAGE. 28*5ca12230Schristos */ 29*5ca12230Schristos 30*5ca12230Schristos #ifndef T_PAM_CONV_H_INCLUDED 31*5ca12230Schristos #define T_PAM_CONV_H_INCLUDED 32*5ca12230Schristos 33*5ca12230Schristos struct t_pam_conv_script { 34*5ca12230Schristos int nmsg; 35*5ca12230Schristos struct pam_message *msgs; 36*5ca12230Schristos struct pam_response *resps; 37*5ca12230Schristos char *comment; 38*5ca12230Schristos }; 39*5ca12230Schristos 40*5ca12230Schristos int t_pam_conv(int, const struct pam_message **, struct pam_response **, 41*5ca12230Schristos void *); 42*5ca12230Schristos 43*5ca12230Schristos #endif 44