1*e8235bc0SLionel Sambuc /* $NetBSD: extern.h,v 1.14 2011/09/16 15:39:27 joerg Exp $ */ 25c007436SBen Gras 35c007436SBen Gras /* 45c007436SBen Gras * Copyright (c) 1994 55c007436SBen Gras * The Regents of the University of California. All rights reserved. 65c007436SBen Gras * 75c007436SBen Gras * Redistribution and use in source and binary forms, with or without 85c007436SBen Gras * modification, are permitted provided that the following conditions 95c007436SBen Gras * are met: 105c007436SBen Gras * 1. Redistributions of source code must retain the above copyright 115c007436SBen Gras * notice, this list of conditions and the following disclaimer. 125c007436SBen Gras * 2. Redistributions in binary form must reproduce the above copyright 135c007436SBen Gras * notice, this list of conditions and the following disclaimer in the 145c007436SBen Gras * documentation and/or other materials provided with the distribution. 155c007436SBen Gras * 3. Neither the name of the University nor the names of its contributors 165c007436SBen Gras * may be used to endorse or promote products derived from this software 175c007436SBen Gras * without specific prior written permission. 185c007436SBen Gras * 195c007436SBen Gras * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 205c007436SBen Gras * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 215c007436SBen Gras * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 225c007436SBen Gras * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 235c007436SBen Gras * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 245c007436SBen Gras * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 255c007436SBen Gras * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 265c007436SBen Gras * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 275c007436SBen Gras * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 285c007436SBen Gras * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 295c007436SBen Gras * SUCH DAMAGE. 305c007436SBen Gras * 315c007436SBen Gras * @(#)extern.h 8.1 (Berkeley) 4/2/94 325c007436SBen Gras */ 335c007436SBen Gras 345c007436SBen Gras #ifdef USE_PAM 355c007436SBen Gras 36*e8235bc0SLionel Sambuc __dead void usage(void); 375c007436SBen Gras 385c007436SBen Gras #ifdef KERBEROS5 395c007436SBen Gras void pwkrb5_usage(const char *); 405c007436SBen Gras void pwkrb5_argv0_usage(const char *); 415c007436SBen Gras void pwkrb5_process(const char *, int, char **); 425c007436SBen Gras #endif 435c007436SBen Gras 445c007436SBen Gras #ifdef YP 455c007436SBen Gras void pwyp_usage(const char *); 465c007436SBen Gras void pwyp_argv0_usage(const char *); 475c007436SBen Gras void pwyp_process(const char *, int, char **); 485c007436SBen Gras #endif 495c007436SBen Gras 505c007436SBen Gras void pwlocal_usage(const char *); 515c007436SBen Gras void pwlocal_process(const char *, int, char **); 525c007436SBen Gras 535c007436SBen Gras void pwpam_process(const char *, int, char **); 545c007436SBen Gras 555c007436SBen Gras #else /* ! USE_PAM */ 565c007436SBen Gras 575c007436SBen Gras /* return values from pw_init() and pw_arg_end() */ 585c007436SBen Gras enum { 595c007436SBen Gras PW_USE_FORCE, 605c007436SBen Gras PW_USE, 615c007436SBen Gras PW_DONT_USE 625c007436SBen Gras }; 635c007436SBen Gras 645c007436SBen Gras #ifdef KERBEROS5 655c007436SBen Gras int krb5_init __P((const char *)); 665c007436SBen Gras int krb5_arg __P((char, const char *)); 675c007436SBen Gras int krb5_arg_end __P((void)); 685c007436SBen Gras void krb5_end __P((void)); 695c007436SBen Gras int krb5_chpw __P((const char *)); 705c007436SBen Gras #endif 715c007436SBen Gras #ifdef YP 725c007436SBen Gras int yp_init __P((const char *)); 735c007436SBen Gras int yp_arg __P((char, const char *)); 745c007436SBen Gras int yp_arg_end __P((void)); 755c007436SBen Gras void yp_end __P((void)); 765c007436SBen Gras int yp_chpw __P((const char *)); 775c007436SBen Gras #endif 785c007436SBen Gras /* local */ 795c007436SBen Gras int local_init __P((const char *)); 805c007436SBen Gras int local_arg __P((char, const char *)); 815c007436SBen Gras int local_arg_end __P((void)); 825c007436SBen Gras void local_end __P((void)); 835c007436SBen Gras int local_chpw __P((const char *)); 845c007436SBen Gras 855c007436SBen Gras #endif /* USE_PAM */ 86