Annotation of src/usr.bin/sudo/sudo_nss.h, Revision 1.1
1.1 ! millert 1: /*
! 2: * Copyright (c) 2007-2008 Todd C. Miller <Todd.Miller@courtesan.com>
! 3: *
! 4: * Permission to use, copy, modify, and distribute this software for any
! 5: * purpose with or without fee is hereby granted, provided that the above
! 6: * copyright notice and this permission notice appear in all copies.
! 7: *
! 8: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
! 9: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
! 10: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
! 11: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
! 12: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
! 13: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
! 14: * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
! 15: *
! 16: * $Sudo: sudo_nss.h,v 1.5 2008/11/09 14:13:12 millert Exp $
! 17: */
! 18:
! 19: struct lbuf;
! 20: struct passwd;
! 21:
! 22: struct sudo_nss {
! 23: struct sudo_nss *prev;
! 24: struct sudo_nss *next;
! 25: int (*open) __P((struct sudo_nss *nss));
! 26: int (*close) __P((struct sudo_nss *nss));
! 27: int (*parse) __P((struct sudo_nss *nss));
! 28: int (*setdefs) __P((struct sudo_nss *nss));
! 29: int (*lookup) __P((struct sudo_nss *nss, int, int));
! 30: int (*display_cmnd) __P((struct sudo_nss *nss, struct passwd *));
! 31: int (*display_defaults) __P((struct sudo_nss *nss, struct passwd *, struct lbuf *));
! 32: int (*display_bound_defaults) __P((struct sudo_nss *nss, struct passwd *, struct lbuf *));
! 33: int (*display_privs) __P((struct sudo_nss *nss, struct passwd *, struct lbuf *));
! 34: void *handle;
! 35: int ret_notfound;
! 36: };
! 37:
! 38: TQ_DECLARE(sudo_nss)
! 39:
! 40: struct sudo_nss_list *sudo_read_nss __P((void));