kdc_util.h revision 159d09a20817016f09b3ea28d1bdada4a336bb91
/*
* Copyright 2008 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__
#include "kdb.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _krb5_fulladdr {
krb5_data *,
krb5_data *);
krb5_authdata **,
krb5_authdata ***);
krb5_last_req_entry ***);
int);
(krb5_kdc_req *,
const krb5_fulladdr *,
krb5_data *,
krb5_ticket **,
krb5_keyblock **);
krb5_keyblock **,
krb5_kvno *);
const char **);
const char **);
int fetch_asn1_field (unsigned char *, unsigned int, unsigned int,
krb5_data *);
int
int
int nktypes,
krb5_key_data *, krb5_data *);
void limit_string (char *name);
void
void
/* do_as_req.c */
const krb5_fulladdr *,
krb5_data ** );
/* do_tgs_req.c */
const krb5_fulladdr *,
krb5_data ** );
/* dispatch.c */
const krb5_fulladdr *,
krb5_data **);
/* main.c */
/* network.c */
krb5_error_code listen_and_process (const char *);
krb5_error_code setup_network (const char *);
krb5_error_code closedown_network (const char *);
/* policy.c */
const char **);
krb5_ticket *, const char **);
/* kdc_preauth.c */
const char * missing_required_preauth
void **padata_context);
/* replay.c */
void kdc_free_lookaside(krb5_context);
/* which way to convert key? */
#define CONVERT_INTO_DB 0
#define CONVERT_OUTOF_DB 1
#ifdef KRB5_KRB4_COMPAT
const krb5_fulladdr *,
krb5_data **);
void process_v4_mode (const char *, const char *);
void enable_v4_crossrealm(char *);
#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
/* RFC 4120: KRB5KDC_ERR_KEY_TOO_WEAK
* RFC 4556: KRB5KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED */
#ifdef __cplusplus
}
#endif
#endif /* !__KRB5_KDC_UTIL__ */