xref: /illumos-gate/usr/src/cmd/krb5/krb5kdc/policy.h (revision 9164a50bf932130cbb5097a16f6986873ce0e6e5)
1 /*
2  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef __KRB5_KDC_POLICY__
7 #define	__KRB5_KDC_POLICY__
8 
9 #ifdef	__cplusplus
10 extern "C" {
11 #endif
12 
13 
14 
15 /*
16  * kdc/policy.h
17  *
18  * Copyright 1990 by the Massachusetts Institute of Technology.
19  *
20  * Export of this software from the United States of America may
21  *   require a specific license from the United States Government.
22  *   It is the responsibility of any person or organization contemplating
23  *   export to obtain such a license before exporting.
24  *
25  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
26  * distribute this software and its documentation for any purpose and
27  * without fee is hereby granted, provided that the above copyright
28  * notice appear in all copies and that both that copyright notice and
29  * this permission notice appear in supporting documentation, and that
30  * the name of M.I.T. not be used in advertising or publicity pertaining
31  * to distribution of the software without specific, written prior
32  * permission.  Furthermore if you modify this software you must label
33  * your software as modified software and not distribute it in such a
34  * fashion that it might be confused with the original M.I.T. software.
35  * M.I.T. makes no representations about the suitability of
36  * this software for any purpose.  It is provided "as is" without express
37  * or implied warranty.
38  *
39  *
40  * Declarations for policy.c
41  */
42 
43 
44 extern int against_postdate_policy (krb5_timestamp);
45 
46 extern int against_flag_policy_as (const krb5_kdc_req *);
47 
48 extern int against_flag_policy_tgs (const krb5_kdc_req *,
49 					      const krb5_ticket *);
50 
51 #ifdef	__cplusplus
52 }
53 #endif
54 
55 #endif	/* !__KRB5_KDC_POLICY__ */
56