[BACK]Return to bsd_auth.h CVS log [TXT][DIR] Up to [local] / src / include

Annotation of src/include/bsd_auth.h, Revision 1.1

1.1     ! millert     1: /*-
        !             2:  * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
        !             3:  *
        !             4:  * Redistribution and use in source and binary forms, with or without
        !             5:  * modification, are permitted provided that the following conditions
        !             6:  * are met:
        !             7:  * 1. Redistributions of source code must retain the above copyright
        !             8:  *    notice, this list of conditions and the following disclaimer.
        !             9:  * 2. Redistributions in binary form must reproduce the above copyright
        !            10:  *    notice, this list of conditions and the following disclaimer in the
        !            11:  *    documentation and/or other materials provided with the distribution.
        !            12:  * 3. All advertising materials mentioning features or use of this software
        !            13:  *    must display the following acknowledgement:
        !            14:  *     This product includes software developed by Berkeley Software Design,
        !            15:  *     Inc.
        !            16:  * 4. The name of Berkeley Software Design, Inc.  may not be used to endorse
        !            17:  *    or promote products derived from this software without specific prior
        !            18:  *    written permission.
        !            19:  *
        !            20:  * THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND
        !            21:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            22:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            23:  * ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE
        !            24:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            25:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            26:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            27:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            28:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            29:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            30:  * SUCH DAMAGE.
        !            31:  *
        !            32:  *     BSDI $From: bsd_auth.h,v 2.3 1999/09/08 22:13:08 prb Exp $
        !            33:  */
        !            34:
        !            35: typedef struct auth_session_t auth_session_t;
        !            36:
        !            37: typedef enum {
        !            38:        AUTHV_ALL,
        !            39:        AUTHV_CHALLENGE,
        !            40:        AUTHV_CLASS,
        !            41:        AUTHV_NAME,
        !            42:        AUTHV_SERVICE,
        !            43:        AUTHV_STYLE,
        !            44:        AUTHV_INTERACTIVE
        !            45: } auth_item_t;
        !            46:
        !            47: char * auth_getitem(auth_session_t *, auth_item_t);
        !            48: int    auth_setitem(auth_session_t *, auth_item_t, char *);
        !            49:
        !            50: auth_session_t *auth_open();
        !            51: auth_session_t *auth_verify(auth_session_t *, char *, char *, ...);
        !            52: auth_session_t *auth_userchallenge(char *, char *, char *, char **);
        !            53: auth_session_t *auth_usercheck(char *, char *, char *, char *);
        !            54:
        !            55: int    auth_userresponse(auth_session_t *, char *, int);
        !            56: int    auth_userokay(char *, char *, char *, char *);
        !            57: int    auth_approval(auth_session_t *, login_cap_t *, char *, char *);
        !            58:
        !            59: int    auth_close(auth_session_t *);
        !            60: void   auth_clean(auth_session_t *);
        !            61:
        !            62: char * auth_getvalue(auth_session_t *, char *);
        !            63: int    auth_getstate(auth_session_t *);
        !            64: char * auth_challenge(auth_session_t *);
        !            65: void   auth_setenv(auth_session_t *);
        !            66: void   auth_clrenv(auth_session_t *);
        !            67:
        !            68: void   auth_setstate(auth_session_t *, int);
        !            69: int    auth_call(auth_session_t *, char *, ...);
        !            70:
        !            71: int    auth_setdata(auth_session_t *, void *, size_t);
        !            72: int    auth_setoption(auth_session_t *, char *, char *);
        !            73: int    auth_setpwd(auth_session_t *, struct passwd *pwd);
        !            74: void   auth_set_va_list(auth_session_t *, _BSD_VA_LIST_);
        !            75:
        !            76: struct passwd *auth_getpwd(auth_session_t *);
        !            77:
        !            78: quad_t auth_check_expire(auth_session_t *);
        !            79: quad_t auth_check_change(auth_session_t *);
        !            80:
        !            81: void   auth_clroptions(auth_session_t *);
        !            82: void   auth_clroption(auth_session_t *, char *);
        !            83:
        !            84:
        !            85: char * auth_mkvalue(char *);
        !            86: void   auth_checknologin(login_cap_t *);
        !            87: int    auth_cat(char *);