globus_authz  3.19
 All Files Functions Variables Enumerations Enumerator Groups Pages
globus_gsi_authz.h
Go to the documentation of this file.
1 
2 #ifndef GLOBUS_GSI_AUTHZ_H
3 #define GLOBUS_GSI_AUTHZ_H 1
4 
10 #include "globus_common.h"
11 #include "gssapi.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #define GLOBUS_GSI_AUTHZ_MODULE (&globus_i_gsi_authz_module)
18 
19 extern
20 globus_module_descriptor_t globus_i_gsi_authz_module;
21 
22 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
23 
27 #endif
28 
39 typedef struct globus_i_gsi_authz_handle_s *
40  globus_gsi_authz_handle_t;
41 
42 typedef void (* globus_gsi_authz_cb_t)(
43  void * callback_arg,
44  globus_gsi_authz_handle_t handle,
45  globus_result_t result);
46 
47 globus_result_t
49  globus_gsi_authz_handle_t * handle,
50  const char * service_name,
51  const gss_ctx_id_t context,
52  globus_gsi_authz_cb_t callback,
53  void * callback_arg);
54 
55 globus_result_t
57  globus_gsi_authz_handle_t handle,
58  const void * action,
59  const void * object,
60  globus_gsi_authz_cb_t callback,
61  void * callback_arg);
62 
63 globus_result_t
65  globus_gsi_authz_handle_t handle);
66 
67 globus_result_t
69  globus_gsi_authz_handle_t handle,
70  globus_gsi_authz_cb_t callback,
71  void * callback_arg);
72 
73 globus_result_t
75  globus_gsi_authz_handle_t handle,
76  char ** identity_ptr,
77  globus_gsi_authz_cb_t callback,
78  void * callback_arg);
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* GLOBUS_GSI_AUTHZ_H */
globus_result_t globus_gsi_authz_handle_init(globus_gsi_authz_handle_t *handle, const char *service_name, const gss_ctx_id_t context, globus_gsi_authz_cb_t callback, void *callback_arg)
Initialize an authorization handle.
Definition: globus_gsi_authz.c:293
globus_result_t globus_gsi_authorize(globus_gsi_authz_handle_t handle, const void *action, const void *object, globus_gsi_authz_cb_t callback, void *callback_arg)
Start the authorization decision-making process.
Definition: globus_gsi_authz.c:415
globus_module_descriptor_t globus_i_gsi_authz_module
Definition: globus_gsi_authz.c:25
globus_result_t globus_gsi_authz_get_authorization_identity(globus_gsi_authz_handle_t handle, char **identity_ptr, globus_gsi_authz_cb_t callback, void *callback_arg)
Query for authorization identity.
Definition: globus_gsi_authz.c:657
globus_result_t globus_gsi_cancel_authz(globus_gsi_authz_handle_t handle)
Cancel Authorization.
Definition: globus_gsi_authz.c:514
globus_result_t globus_gsi_authz_handle_destroy(globus_gsi_authz_handle_t handle, globus_gsi_authz_cb_t callback, void *callback_arg)
Destroy an authz handle.
Definition: globus_gsi_authz.c:558