kdc_util.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*
* Copyright 1990 by the Massachusetts Institute of Technology.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
*
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright notice and
* this permission notice appear in supporting documentation, and that
* the name of M.I.T. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. Furthermore if you modify this software you must label
* your software as modified software and not distribute it in such a
* fashion that it might be confused with the original M.I.T. software.
* M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
*
* Declarations for policy.c
*/
#ifndef __KRB5_KDC_UTIL__
#define __KRB5_KDC_UTIL__
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _krb5_fulladdr {
krb5_data *,
krb5_data *));
krb5_authdata **,
krb5_authdata ***));
krb5_last_req_entry ***));
int));
const krb5_fulladdr *,
krb5_data *,
krb5_ticket **,
krb5_keyblock **));
krb5_keyblock **,
krb5_kvno *));
const char **));
const char **));
int fetch_asn1_field PROTOTYPE((unsigned char *, unsigned int, unsigned int,
krb5_data *));
int
int
int nktypes,
krb5_enctype *ktypes));
krb5_key_data *, krb5_data *));
/* do_as_req.c */
const krb5_fulladdr *,
int,
krb5_data ** ));
/* do_tgs_req.c */
const krb5_fulladdr *,
int,
krb5_data ** ));
/* dispatch.c */
const krb5_fulladdr *,
int,
krb5_data **));
/* main.c */
/* network.c */
/* policy.c */
const char **));
krb5_ticket *, const char **));
/* kdc_preauth.c */
const char * missing_required_preauth
/* replay.c */
krb5_data **));
krb5_data *));
/* sock2p.c */
#ifndef HAVE_INET_NTOP
/* It's provided by sock2p.c in this case. */
#endif
/* which way to convert key? */
#define CONVERT_INTO_DB 0
#define CONVERT_OUTOF_DB 1
#ifdef KRB5_KRB4_COMPAT
const krb5_fulladdr *,
int is_secondary,
krb5_data **));
#else
#endif
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif
#ifdef KRB5_USE_INET6
#define ADDRTYPE2FAMILY(X) \
#else
#define ADDRTYPE2FAMILY(X) \
#endif
#ifdef __cplusplus
}
#endif
#endif /* !__KRB5_KDC_UTIL__ */