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