extern.h revision 56a424cca6b3f91f31bdab72a4626c48c779fe8b
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef __KRB5_KDC_EXTERN__
#define __KRB5_KDC_EXTERN__
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Copyright 1990,2001 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.
*
*
* <<< Description >>>
*/
typedef struct __kdc_realm_data {
/*
* General Kerberos per-realm data.
*/
char * realm_name; /* Realm name */
/* XXX the real context should go away once the db_context is done.
* The db_context is then associated with the realm keytab using
* krb5_ktkdb_resolv(). There should be nothing in the context which
* cannot span multiple realms -- proven */
char * realm_profile; /* Profile file for this realm */
/*
* Database per-realm data.
*/
char * realm_dbname; /* Database name for realm */
char * realm_stash; /* Stash file name for realm */
char * realm_mpname; /* Master principal name for realm */
/*
* TGS per-realm data.
*/
/*
* Other per-realm data.
*/
char *realm_ports; /* Per-realm KDC UDP port */
char *realm_tcp_ports; /* Per-realm KDC TCP port */
/*
* Per-realm parameters.
*/
} kdc_realm_t;
extern kdc_realm_t **kdc_realmlist;
extern int kdc_numrealms;
extern kdc_realm_t *kdc_active_realm;
/*
* Replace previously used global variables with the active (e.g. request's)
* realm data. This allows us to support multiple realms with minimal logic
* changes.
*/
/* various externs for KDC */
extern volatile int signal_requests_exit;
extern volatile int signal_requests_hup;
/* libbsm */
char *, char *, int);
char *, char *, int);
in_port_t, char *, char *);
in_port_t, char *, char *, int);
#ifdef __cplusplus
}
#endif
#endif /* !__KRB5_KDC_EXTERN__ */