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

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

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