xref: /onnv-gate/usr/src/cmd/krb5/krb5kdc/policy.h (revision 781:57319a72b15f)
10Sstevel@tonic-gate /*
2*781Sgtb  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
30Sstevel@tonic-gate  * Use is subject to license terms.
40Sstevel@tonic-gate  */
50Sstevel@tonic-gate 
60Sstevel@tonic-gate #ifndef __KRB5_KDC_POLICY__
70Sstevel@tonic-gate #define	__KRB5_KDC_POLICY__
80Sstevel@tonic-gate 
90Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
100Sstevel@tonic-gate 
110Sstevel@tonic-gate #ifdef	__cplusplus
120Sstevel@tonic-gate extern "C" {
130Sstevel@tonic-gate #endif
140Sstevel@tonic-gate 
150Sstevel@tonic-gate 
160Sstevel@tonic-gate 
170Sstevel@tonic-gate /*
180Sstevel@tonic-gate  * kdc/policy.h
190Sstevel@tonic-gate  *
200Sstevel@tonic-gate  * Copyright 1990 by the Massachusetts Institute of Technology.
210Sstevel@tonic-gate  *
220Sstevel@tonic-gate  * Export of this software from the United States of America may
230Sstevel@tonic-gate  *   require a specific license from the United States Government.
240Sstevel@tonic-gate  *   It is the responsibility of any person or organization contemplating
250Sstevel@tonic-gate  *   export to obtain such a license before exporting.
260Sstevel@tonic-gate  *
270Sstevel@tonic-gate  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
280Sstevel@tonic-gate  * distribute this software and its documentation for any purpose and
290Sstevel@tonic-gate  * without fee is hereby granted, provided that the above copyright
300Sstevel@tonic-gate  * notice appear in all copies and that both that copyright notice and
310Sstevel@tonic-gate  * this permission notice appear in supporting documentation, and that
320Sstevel@tonic-gate  * the name of M.I.T. not be used in advertising or publicity pertaining
330Sstevel@tonic-gate  * to distribution of the software without specific, written prior
340Sstevel@tonic-gate  * permission.  Furthermore if you modify this software you must label
350Sstevel@tonic-gate  * your software as modified software and not distribute it in such a
360Sstevel@tonic-gate  * fashion that it might be confused with the original M.I.T. software.
370Sstevel@tonic-gate  * M.I.T. makes no representations about the suitability of
380Sstevel@tonic-gate  * this software for any purpose.  It is provided "as is" without express
390Sstevel@tonic-gate  * or implied warranty.
400Sstevel@tonic-gate  *
410Sstevel@tonic-gate  *
420Sstevel@tonic-gate  * Declarations for policy.c
430Sstevel@tonic-gate  */
440Sstevel@tonic-gate 
450Sstevel@tonic-gate 
46*781Sgtb extern int against_postdate_policy (krb5_timestamp);
470Sstevel@tonic-gate 
48*781Sgtb extern int against_flag_policy_as (const krb5_kdc_req *);
490Sstevel@tonic-gate 
50*781Sgtb extern int against_flag_policy_tgs (const krb5_kdc_req *,
51*781Sgtb 					      const krb5_ticket *);
520Sstevel@tonic-gate 
530Sstevel@tonic-gate #ifdef	__cplusplus
540Sstevel@tonic-gate }
550Sstevel@tonic-gate #endif
560Sstevel@tonic-gate 
570Sstevel@tonic-gate #endif	/* !__KRB5_KDC_POLICY__ */
58