/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/* kdc/policy.h - Declarations for policy.c */2/*3* Copyright 1990 by the Massachusetts Institute of Technology.4*5* Export of this software from the United States of America may6* require a specific license from the United States Government.7* It is the responsibility of any person or organization contemplating8* export to obtain such a license before exporting.9*10* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and11* distribute this software and its documentation for any purpose and12* without fee is hereby granted, provided that the above copyright13* notice appear in all copies and that both that copyright notice and14* this permission notice appear in supporting documentation, and that15* the name of M.I.T. not be used in advertising or publicity pertaining16* to distribution of the software without specific, written prior17* permission. Furthermore if you modify this software you must label18* your software as modified software and not distribute it in such a19* fashion that it might be confused with the original M.I.T. software.20* M.I.T. makes no representations about the suitability of21* this software for any purpose. It is provided "as is" without express22* or implied warranty.23*/2425#ifndef __KRB5_KDC_POLICY__26#define __KRB5_KDC_POLICY__2728krb5_error_code29load_kdcpolicy_plugins(krb5_context context);3031void32unload_kdcpolicy_plugins(krb5_context context);3334krb5_error_code35check_kdcpolicy_as(krb5_context context, const krb5_kdc_req *request,36const krb5_db_entry *client, const krb5_db_entry *server,37krb5_data *const *auth_indicators, krb5_timestamp kdc_time,38krb5_ticket_times *times, const char **status);3940krb5_error_code41check_kdcpolicy_tgs(krb5_context context, const krb5_kdc_req *request,42const krb5_db_entry *server, const krb5_ticket *ticket,43krb5_data *const *auth_indicators, krb5_timestamp kdc_time,44krb5_ticket_times *times, const char **status);4546#endif /* __KRB5_KDC_POLICY__ */474849