(root)/
Linux-PAM-1.5.3/
modules/
pam_timestamp/
pam_timestamp_check.c
       1  /******************************************************************************
       2   * A module for Linux-PAM that will cache authentication results, inspired by
       3   * (and implemented with an eye toward being mixable with) sudo.
       4   *
       5   * Copyright (c) 2002 Red Hat, Inc.
       6   * Written by Nalin Dahyabhai <nalin@redhat.com>
       7   *
       8   * Redistribution and use in source and binary forms, with or without
       9   * modification, are permitted provided that the following conditions
      10   * are met:
      11   * 1. Redistributions of source code must retain the above copyright
      12   *    notice, and the entire permission notice in its entirety,
      13   *    including the disclaimer of warranties.
      14   * 2. Redistributions in binary form must reproduce the above copyright
      15   *    notice, this list of conditions and the following disclaimer in the
      16   *    documentation and/or other materials provided with the distribution.
      17   * 3. The name of the author may not be used to endorse or promote
      18   *    products derived from this software without specific prior
      19   *    written permission.
      20   *
      21   * ALTERNATIVELY, this product may be distributed under the terms of
      22   * the GNU Public License, in which case the provisions of the GPL are
      23   * required INSTEAD OF the above restrictions.  (This clause is
      24   * necessary due to a potential bad interaction between the GPL and
      25   * the restrictions contained in a BSD-style copyright.)
      26   *
      27   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
      28   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
      29   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
      30   * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
      31   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
      32   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
      33   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      34   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
      35   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
      36   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
      37   * OF THE POSSIBILITY OF SUCH DAMAGE.
      38   *
      39   */
      40  
      41  #define PAM_TIMESTAMP_MAIN 1
      42  #include "pam_timestamp.c"