17 #ifndef _GLOBUS_GSS_ASSIST_H 18 #define _GLOBUS_GSS_ASSIST_H 34 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET 94 #define GLOBUS_GSI_GSS_ASSIST_MODULE (&globus_i_gsi_gss_assist_module) 99 #define _GASL(s) globus_common_i18n_get_string( \ 100 GLOBUS_GSI_GSS_ASSIST_MODULE, \ 105 #define GLOBUS_GSS_ASSIST_TOKEN_ERR_MALLOC 1 106 #define GLOBUS_GSS_ASSIST_TOKEN_ERR_BAD_SIZE 2 107 #define GLOBUS_GSS_ASSIST_TOKEN_EOF 3 108 #define GLOBUS_GSS_ASSIST_TOKEN_NOT_FOUND 4 111 #ifndef GSS_C_NO_NAME 112 #define GSS_C_NO_NAME ((gss_name_t *) 0) 113 #define GSS_ASSIST_KRB5_HACK 118 #define GLOBUS_GSS_ASSIST_EX_SEND_WITHOUT_LENGTH 1 120 typedef struct globus_gss_assist_ex_st
124 } globus_gss_assist_ex;
178 OM_uint32 *minor_status,
180 gss_cred_id_t **output_credentials_array,
181 size_t *output_credentials_array_size);
184 globus_gss_assist_acquire_cred_dir(
225 int (* get_token)(
void *,
void **,
size_t *),
227 int (* send_token)(
void *,
void *,
size_t),
228 void * send_context);
236 OM_uint32 * minor_status,
237 gss_ctx_id_t * context_handle,
238 const gss_cred_id_t cred_handle,
239 char ** src_name_char,
240 OM_uint32 * ret_flags,
241 int * user_to_user_flag,
243 size_t input_buffer_len,
244 void ** output_bufferp,
245 size_t * output_buffer_lenp,
246 gss_cred_id_t * delegated_cred_handle);
262 int (* get_token)(
void *,
void **,
size_t *),
264 int (* send_token)(
void *,
void *,
size_t),
273 OM_uint32 * minor_status,
274 const gss_cred_id_t cred_handle,
275 gss_ctx_id_t * context_handle,
276 char * target_name_char,
278 OM_uint32 * ret_flags,
280 size_t input_buffer_len,
281 void ** output_bufferp,
282 size_t * output_buffer_lenp);
315 OM_uint32 * minor_status,
316 const gss_ctx_id_t context_handle,
320 int (*gss_assist_send_token)(
void *,
void *,
size_t),
321 void * gss_assist_send_context,
329 OM_uint32 * minor_status,
330 const gss_ctx_id_t context_handle,
334 int (*gss_assist_get_token)(
void *,
void **,
size_t *),
335 void * gss_assist_get_context,
344 OM_uint32 * minor_status,
345 gss_ctx_id_t * context_handle);
353 OM_uint32 * minor_status,
354 gss_ctx_id_t * context_handle,
364 OM_uint32 * minor_status,
365 gss_ctx_id_t * context_handle,
374 gss_name_t * authorization_hostname);
409 gss_ctx_id_t context,
411 char * desired_identity,
412 char * identity_buffer,
413 unsigned int identity_buffer_length);
417 char * shared_user_certificate,
418 gss_ctx_id_t context,
419 char * desired_identity,
420 char * identity_buffer,
421 unsigned int identity_buffer_length);
438 #define GlobusGssAssistFreeDNArray(dn_a) \ 441 while(dn_a[__ctr] != NULL) \ globus_result_t globus_gss_assist_lookup_all_globusid(char *username, char **dns[], int *dn_count)
Look up all Grid IDs associated with a local user ID.
Definition: gridmap.c:1769
OM_uint32 globus_gss_assist_display_status_str(char **, char *, OM_uint32, OM_uint32, int)
Definition: display.c:173
int globus_gss_assist_userok(char *globusid, char *userid)
Gridmap entry existence check.
Definition: gridmap.c:699
OM_uint32 globus_gss_assist_accept_sec_context_async(OM_uint32 *minor_status, gss_ctx_id_t *context_handle, const gss_cred_id_t cred_handle, char **src_name_char, OM_uint32 *ret_flags, int *user_to_user_flag, void *input_buffer, size_t input_buffer_len, void **output_bufferp, size_t *output_buffer_lenp, gss_cred_id_t *delegated_cred_handle)
Accept a Security Context Without Blocking.
Definition: accept.c:323
OM_uint32 globus_gss_assist_get_unwrap(OM_uint32 *minor_status, const gss_ctx_id_t context_handle, char **data, size_t *length, int *token_status, int(*gss_assist_get_token)(void *, void **, size_t *), void *gss_assist_get_context, FILE *fperr)
Get Unwrap.
Definition: unwrap.c:60
OM_uint32 globus_gss_assist_acquire_cred(OM_uint32 *, gss_cred_usage_t, gss_cred_id_t *)
Definition: acquire.c:67
OM_uint32 globus_gss_assist_accept_sec_context(OM_uint32 *, gss_ctx_id_t *, const gss_cred_id_t, char **, OM_uint32 *, int *, int *, gss_cred_id_t *, int(*get_token)(void *, void **, size_t *), void *get_context, int(*send_token)(void *, void *, size_t), void *send_context)
Accept a Security Context.
Definition: accept.c:80
OM_uint32 globus_gss_assist_import_sec_context(OM_uint32 *minor_status, gss_ctx_id_t *context_handle, int *token_status, int fdp, FILE *fperr)
Definition: import_sec_context.c:51
OM_uint32 globus_gss_assist_will_handle_restrictions(OM_uint32 *minor_status, gss_ctx_id_t *context_handle)
Definition: set_sec_context_opts.c:45
OM_uint32 globus_gss_assist_acquire_cred_ext(OM_uint32 *, char *, OM_uint32, const gss_OID_set, gss_cred_usage_t, gss_cred_id_t *, gss_OID_set *, OM_uint32 *)
Definition: acquire.c:95
int globus_gss_assist_token_send_fd(void *arg, void *buf, size_t size)
Send token via a FILE *.
Definition: tokens_f.c:247
globus_result_t globus_gss_assist_map_and_authorize_sharing(char *shared_user_certificate, gss_ctx_id_t context, char *desired_identity, char *identity_buffer, unsigned int identity_buffer_length)
Authorize a particular credential for shared access.
Definition: gridmap.c:2126
OM_uint32 globus_gss_assist_export_sec_context(OM_uint32 *minor_status, gss_ctx_id_t *context_handle, int *token_status, int fdp, FILE *fperr)
Definition: export_sec_context.c:52
OM_uint32 globus_gss_assist_wrap_send(OM_uint32 *minor_status, const gss_ctx_id_t context_handle, char *data, size_t length, int *token_status, int(*gss_assist_send_token)(void *, void *, size_t), void *gss_assist_send_context, FILE *fperr)
Wrap.
Definition: wrap.c:62
OM_uint32 globus_gss_assist_read_vhost_cred_dir(OM_uint32 *minor_status, const char *dir, gss_cred_id_t **output_credentials_array, size_t *output_credentials_array_size)
Acquire all GSSAPI credentials in a directory.
Definition: read_vhost_cred_dir.c:42
int globus_gss_assist_map_local_user(char *local_user, char **globusidp)
Look up the default Grid identity associated with a local user name.
Definition: gridmap.c:836
OM_uint32 globus_gss_assist_init_sec_context(OM_uint32 *, const gss_cred_id_t, gss_ctx_id_t *, char *, OM_uint32, OM_uint32 *, int *, int(*get_token)(void *, void **, size_t *), void *get_arg, int(*send_token)(void *, void *, size_t), void *send_arg)
Definition: init.c:77
int globus_gss_assist_token_send_fd_ex(void *arg, void *buf, size_t size)
Send a token to a FILE *.
Definition: tokens_f.c:319
uint32_t globus_result_t
Definition: globus_types.h:99
OM_uint32 globus_gss_assist_init_sec_context_async(OM_uint32 *minor_status, const gss_cred_id_t cred_handle, gss_ctx_id_t *context_handle, char *target_name_char, OM_uint32 req_flags, OM_uint32 *ret_flags, void *input_buffer, size_t input_buffer_len, void **output_bufferp, size_t *output_buffer_lenp)
Definition: init.c:336
int globus_gss_assist_token_get_fd(void *arg, void **bufp, size_t *sizep)
Get token from a FILE *.
Definition: tokens_f.c:50
int globus_gss_assist_gridmap(char *globusidp, char **useridp)
Look up the default mapping for a Grid identity in a gridmap file.
Definition: gridmap.c:552
OM_uint32 globus_gss_assist_display_status(FILE *, char *, OM_uint32, OM_uint32, int)
Definition: display.c:125
globus_result_t globus_gss_assist_map_and_authorize(gss_ctx_id_t context, char *service, char *desired_identity, char *identity_buffer, unsigned int identity_buffer_length)
Authorize the peer of a security context to use a service.
Definition: gridmap.c:1952
globus_result_t globus_gss_assist_authorization_host_name(char *hostname, gss_name_t *authorization_hostname)
Definition: hostname.c:47
Globus GSI GSS Assist Library.
Module Descriptor.
Definition: globus_module.h:71
int globus_gss_assist_token_send_fd_without_length(void *arg, void *buf, size_t size)
Send token to a FILE *.
Definition: tokens_f.c:276