globus_gsi_authz.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2006 University of Chicago
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef GLOBUS_GSI_AUTHZ_H
00018 #define GLOBUS_GSI_AUTHZ_H 1
00019 
00025 #include "globus_common.h"
00026 #include "gssapi.h"
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00032 #define GLOBUS_GSI_AUTHZ_MODULE         (&globus_i_gsi_authz_module)
00033 
00034 extern
00035 globus_module_descriptor_t    globus_i_gsi_authz_module;
00036 
00037 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
00038 
00042 #endif 
00043 
00054 typedef struct globus_i_gsi_authz_handle_s *
00055     globus_gsi_authz_handle_t;
00056 
00057 typedef void (* globus_gsi_authz_cb_t)(
00058     void *                              callback_arg,
00059     globus_gsi_authz_handle_t           handle,
00060     globus_result_t                     result); 
00061 
00062 globus_result_t
00063 globus_gsi_authz_handle_init(
00064     globus_gsi_authz_handle_t *         handle,
00065     const char *                        service_name,
00066     const gss_ctx_id_t                  context,
00067     globus_gsi_authz_cb_t               callback,
00068     void *                              callback_arg);
00069 
00070 globus_result_t
00071 globus_gsi_authorize(
00072     globus_gsi_authz_handle_t           handle,
00073     const void *                        action,
00074     const void *                        object,
00075     globus_gsi_authz_cb_t               callback,
00076     void *                              callback_arg);
00077 
00078 globus_result_t
00079 globus_gsi_cancel_authz(
00080     globus_gsi_authz_handle_t           handle);
00081 
00082 globus_result_t
00083 globus_gsi_authz_handle_destroy(
00084     globus_gsi_authz_handle_t           handle,
00085     globus_gsi_authz_cb_t               callback,
00086     void *                              callback_arg);
00087 
00088 globus_result_t
00089 globus_gsi_authz_get_authorization_identity(
00090     globus_gsi_authz_handle_t           handle,
00091     char **                             identity_ptr,
00092     globus_gsi_authz_cb_t               callback,
00093     void *                              callback_arg);
00094 
00095 #ifdef __cplusplus
00096 }
00097 #endif
00098 
00099 #endif /* GLOBUS_GSI_AUTHZ_H */

Generated on 2 May 2016 for globus_authz by  doxygen 1.4.7