xref: /freebsd/crypto/krb5/src/kdc/policy.h (revision ee3960cba1068e12fb032a68c46d74841d9edab3)
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* kdc/policy.h - Declarations for policy.c */
3 /*
4  * Copyright 1990 by the Massachusetts Institute of Technology.
5  *
6  * Export of this software from the United States of America may
7  *   require a specific license from the United States Government.
8  *   It is the responsibility of any person or organization contemplating
9  *   export to obtain such a license before exporting.
10  *
11  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
12  * distribute this software and its documentation for any purpose and
13  * without fee is hereby granted, provided that the above copyright
14  * notice appear in all copies and that both that copyright notice and
15  * this permission notice appear in supporting documentation, and that
16  * the name of M.I.T. not be used in advertising or publicity pertaining
17  * to distribution of the software without specific, written prior
18  * permission.  Furthermore if you modify this software you must label
19  * your software as modified software and not distribute it in such a
20  * fashion that it might be confused with the original M.I.T. software.
21  * M.I.T. makes no representations about the suitability of
22  * this software for any purpose.  It is provided "as is" without express
23  * or implied warranty.
24  */
25 
26 #ifndef __KRB5_KDC_POLICY__
27 #define __KRB5_KDC_POLICY__
28 
29 krb5_error_code
30 load_kdcpolicy_plugins(krb5_context context);
31 
32 void
33 unload_kdcpolicy_plugins(krb5_context context);
34 
35 krb5_error_code
36 check_kdcpolicy_as(krb5_context context, const krb5_kdc_req *request,
37                    const krb5_db_entry *client, const krb5_db_entry *server,
38                    krb5_data *const *auth_indicators, krb5_timestamp kdc_time,
39                    krb5_ticket_times *times, const char **status);
40 
41 krb5_error_code
42 check_kdcpolicy_tgs(krb5_context context, const krb5_kdc_req *request,
43                     const krb5_db_entry *server, const krb5_ticket *ticket,
44                     krb5_data *const *auth_indicators, krb5_timestamp kdc_time,
45                     krb5_ticket_times *times, const char **status);
46 
47 #endif /* __KRB5_KDC_POLICY__ */
48