server_internal.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source code before consulting with your legal department.
* Do *NOT* integrate *ANY* of this source code into another
* product before consulting with your legal department.
*
* For further information, read the top-level Openvision
* copyright which is contained in the top-level MIT Kerberos
* copyright.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
*/
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
* $Header: /cvs/krbdev/krb5/src/lib/kadm5/server_internal.h,v 1.27 1996/10/21 20:29:58 bjaspan Exp $
*/
/*
* This header file is used internally by the Admin API server
* libraries and Admin server. IF YOU THINK YOU NEED TO USE THIS FILE
* FOR ANYTHING, YOU'RE ALMOST CERTAINLY WRONG.
*/
#ifndef __KADM5_SERVER_INTERNAL_H__
#define __KADM5_SERVER_INTERNAL_H__
#include <memory.h>
#include <stdlib.h>
#include "k5-int.h"
#include "admin_internal.h"
#include "adb.h"
typedef struct _kadm5_server_handle_t {
struct _kadm5_server_handle_t *lhandle;
char *pass, int use_policy,
char *r, int from_keyboard);
char *r);
int init_dict(kadm5_config_params *);
void destroy_dict(void);
/*
* *Warning*
* *Warning* This is going to break if we
* *Warning* ever go multi-threaded
* *Warning*
*/
extern krb5_principal current_caller;
/*
* Why is this (or something similar) not defined *anywhere* in krb5?
*/
#define KSUCCESS 0
#define WORD_NOT_FOUND 1
/*
* all the various mask bits or'd together
*/
#define ALL_PRINC_MASK \
#define ALL_POLICY_MASK \
#define SERVER_CHECK_HANDLE(handle) \
{ \
\
if (! srvr->current_caller) \
return KADM5_BAD_SERVER_HANDLE; \
return KADM5_BAD_SERVER_HANDLE; \
}
#define CHECK_HANDLE(handle) \
#endif /* __KADM5_SERVER_INTERNAL_H__ */