Path: blob/main/crypto/krb5/src/lib/kadm5/clnt/client_internal.h
39566 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/*2* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved3*4* $Header$5*6* $Log$7* Revision 1.1 1996/07/24 22:22:43 tlyu8* * Makefile.in, configure.in: break out client lib into a9* subdirectory10*11* Revision 1.11 1996/07/22 20:35:46 marc12* this commit includes all the changes on the OV_9510_INTEGRATION and13* OV_MERGE branches. This includes, but is not limited to, the new openvision14* admin system, and major changes to gssapi to add functionality, and bring15* the implementation in line with rfc1964. before committing, the16* code was built and tested for netbsd and solaris.17*18* Revision 1.10.4.1 1996/07/18 03:08:37 marc19* merged in changes from OV_9510_BP to OV_9510_FINAL120*21* Revision 1.10.2.1 1996/06/20 02:16:46 marc22* File added to the repository on a branch23*24* Revision 1.10 1996/06/06 20:09:16 bjaspan25* add destroy_cache, for kadm5_init_with_creds26*27* Revision 1.9 1996/05/30 21:04:42 bjaspan28* add lhandle to handle29*30* Revision 1.8 1996/05/28 20:33:49 bjaspan31* rework kadm5_config32*33* Revision 1.7 1996/05/17 21:36:59 bjaspan34* rename to kadm5, begin implementing version 235*36* Revision 1.6 1996/05/16 21:45:07 bjaspan37* add context38*39* Revision 1.5 1996/05/08 21:10:23 bjaspan40* marc's changes41*42* Revision 1.4 1996/01/16 20:54:30 grier43* secure/3570 use krb5_ui_4 not unsigned int44*45* Revision 1.3 1995/11/14 17:48:57 grier46* long to int47*48* Revision 1.2 1994/08/16 18:53:47 jik49* Versioning stuff.50*51* Revision 1.1 1994/08/09 21:14:38 jik52* Initial revision53*54*/5556/*57* This header file is used internally by the Admin API client58* libraries. IF YOU THINK YOU NEED TO USE THIS FILE FOR ANYTHING,59* YOU'RE ALMOST CERTAINLY WRONG.60*/6162#ifndef __KADM5_CLIENT_INTERNAL_H__63#define __KADM5_CLIENT_INTERNAL_H__6465#include "admin_internal.h"6667typedef struct _kadm5_server_handle_t {68krb5_ui_4 magic_number;69krb5_ui_4 struct_version;70krb5_ui_4 api_version;71char * cache_name;72int destroy_cache;73CLIENT * clnt;74int client_socket;75krb5_context context;76gss_cred_id_t cred;77kadm5_config_params params;78struct _kadm5_server_handle_t *lhandle;79} kadm5_server_handle_rec, *kadm5_server_handle_t;8081#define CLIENT_CHECK_HANDLE(handle) \82{ \83kadm5_server_handle_t srvr = \84(kadm5_server_handle_t) handle; \85\86if (! srvr->clnt) \87return KADM5_BAD_SERVER_HANDLE; \88if (! srvr->cache_name) \89return KADM5_BAD_SERVER_HANDLE; \90if (! srvr->lhandle) \91return KADM5_BAD_SERVER_HANDLE; \92}9394#define CHECK_HANDLE(handle) \95GENERIC_CHECK_HANDLE(handle, KADM5_OLD_LIB_API_VERSION, \96KADM5_NEW_LIB_API_VERSION) \97CLIENT_CHECK_HANDLE(handle)9899#endif /* __KADM5_CLIENT_INTERNAL_H__ */100101102