Annotation of src/include/bsd_auth.h, Revision 1.2
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:
1.2 ! millert 35: #ifndef _BSD_AUTH_H_
! 36: #define _BSD_AUTH_H_
! 37:
1.1 millert 38: typedef struct auth_session_t auth_session_t;
39:
40: typedef enum {
41: AUTHV_ALL,
42: AUTHV_CHALLENGE,
43: AUTHV_CLASS,
44: AUTHV_NAME,
45: AUTHV_SERVICE,
46: AUTHV_STYLE,
47: AUTHV_INTERACTIVE
48: } auth_item_t;
49:
1.2 ! millert 50: #include <sys/cdefs.h>
! 51: __BEGIN_DECLS
! 52:
! 53: char * auth_getitem __P((auth_session_t *, auth_item_t));
! 54: int auth_setitem __P((auth_session_t *, auth_item_t, char *));
! 55:
! 56: auth_session_t *auth_open __P((void));
! 57: auth_session_t *auth_verify __P((auth_session_t *, char *, char *, ...));
! 58: auth_session_t *auth_userchallenge __P((char *, char *, char *, char **));
! 59: auth_session_t *auth_usercheck __P((char *, char *, char *, char *));
1.1 millert 60:
1.2 ! millert 61: int auth_userresponse __P((auth_session_t *, char *, int));
! 62: int auth_userokay __P((char *, char *, char *, char *));
! 63: int auth_approval __P((auth_session_t *, login_cap_t *, char *, char *));
1.1 millert 64:
1.2 ! millert 65: int auth_close __P((auth_session_t *));
! 66: void auth_clean __P((auth_session_t *));
1.1 millert 67:
1.2 ! millert 68: char * auth_getvalue __P((auth_session_t *, char *));
! 69: int auth_getstate __P((auth_session_t *));
! 70: char * auth_challenge __P((auth_session_t *));
! 71: void auth_setenv __P((auth_session_t *));
! 72: void auth_clrenv __P((auth_session_t *));
1.1 millert 73:
1.2 ! millert 74: void auth_setstate __P((auth_session_t *, int));
! 75: int auth_call __P((auth_session_t *, char *, ...));
1.1 millert 76:
1.2 ! millert 77: int auth_setdata __P((auth_session_t *, void *, size_t));
! 78: int auth_setoption __P((auth_session_t *, char *, char *));
! 79: int auth_setpwd __P((auth_session_t *, struct passwd *pwd));
! 80: void auth_set_va_list __P((auth_session_t *, _BSD_VA_LIST_));
1.1 millert 81:
1.2 ! millert 82: struct passwd *auth_getpwd __P((auth_session_t *));
1.1 millert 83:
1.2 ! millert 84: quad_t auth_check_expire __P((auth_session_t *));
! 85: quad_t auth_check_change __P((auth_session_t *));
1.1 millert 86:
1.2 ! millert 87: void auth_clroptions __P((auth_session_t *));
! 88: void auth_clroption __P((auth_session_t *, char *));
1.1 millert 89:
1.2 ! millert 90: char * auth_mkvalue __P((char *));
! 91: void auth_checknologin __P((login_cap_t *));
! 92: int auth_cat __P((char *));
1.1 millert 93:
1.2 ! millert 94: __END_DECLS
1.1 millert 95:
1.2 ! millert 96: #endif /* _BSD_AUTH_H_ */