globus_gss_assist.h(3)
β¨ globus_gss_assist.h(3) β Library Functions Manual β¨
okay bestie, gather round π this is the GSS Assist Header from globus_gss_assist, and it lives in section 3 of the manual. It's a whole pile of helper functions for doing GSSAPI stuff without losing your entire mind. Buckle up, we're going through every single one. π¦
πΈ NAME πΈ
globus_gss_assist.h β GSS Assist Header. that's it, that's the name, she's self-explanatory π
β¨ SYNOPSIS β¨
#include 'gssapi.h'
#include <stdio.h>
#include <stdlib.h>
#include 'globus_gss_assist_constants.h'
π Macros
#define GLOBUS_GSI_GSS_ASSIST_MODULEβ the module marker macro, no description needed, she just exists π«Ά#define GlobusGssAssistFreeDNArray(dn_a)β Free array of distinguished names. yes queen, clean up after yourself π§Ή
π Functions
int globus_gss_assist_token_get_fd (void *arg, void **bufp, size_t *sizep)β Get token from aFILE *.int globus_gss_assist_token_send_fd (void *arg, void *buf, size_t size)β Send token via aFILE *.int globus_gss_assist_token_send_fd_ex (void *exp, void *buf, size_t size)β Send a token to aFILE *.int globus_gss_assist_token_send_fd_without_length (void *arg, void *buf, size_t size)β Send token to aFILE *.OM_uint32 globus_gss_assist_acquire_cred (OM_uint32 *, gss_cred_usage_t, gss_cred_id_t *)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.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 *)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.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.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)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)OM_uint32 globus_gss_assist_display_status (FILE *, char *, OM_uint32, OM_uint32, int)OM_uint32 globus_gss_assist_display_status_str (char **, char *, OM_uint32, OM_uint32, int)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.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.OM_uint32 globus_gss_assist_will_handle_restrictions (OM_uint32 *minor_status, gss_ctx_id_t *context_handle)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)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)globus_result_t globus_gss_assist_authorization_host_name (char *hostname, gss_name_t *authorization_hostname)int globus_gss_assist_gridmap (char *globusidp, char **useridp)β Look up the default mapping for a Grid identity in a gridmap file.int globus_gss_assist_userok (char *globusid, char *userid)β Gridmap entry existence check.int globus_gss_assist_map_local_user (char *local_user, char **globusidp)β Look up the default Grid identity associated with a local user name.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.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.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.
π¦ Detailed Description π¦
GSS Assist Header. that's the whole vibe. π
π Function Documentation π
π globus_result_t globus_gss_assist_authorization_host_name (char * hostname, gss_name_t * authorization_hostname)
Create a GSS Name structure from the given hostname. This function tries to resolve the given host name string to the canonical DNS name for the host. π§
Parameters
hostnameβ The host name or numerical address to be resolved and transform into a GSS Nameauthorization_hostnameβ The resulting GSS Name
Returns
GLOBUS_SUCCESS on successful completion, a error object otherwise
πΈ 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) [extern]
Wrap. that's it, that's the summary, she's concise π
Parameters
minor_statusβ GSSAPI return code. If the call was successful, the minor status is equal toGLOBUS_SUCCESS. Otherwise, it is an error object ID for whichglobus_error_get()andglobus_object_free()can be used to get and destroy it.context_handleβ the context.dataβ pointer to application data to wrap and sendlengthβ length of the data arraytoken_statusβ assist routine get/send token statusgss_assist_send_tokenβ asend_tokenroutinegss_assist_send_contextβ first arg for thesend_tokenfperrβ file handle to write error message to.
Returns
GSS_S_COMPLETE on success Other GSSAPI errors on failure.
See also
gss_wrap()
π Author π
Generated automatically by Doxygen for globus_gss_assist from the source code. (so if anything's weird in here, blame the robots, not me π)
ngl bestie, that's the whole page. every macro, every function, every param, every return, untouched and unbothered, just wearing a cuter outfit now. no cap. π
globus_gss_assist β Version 12.7 β globus_gss_assist.h(3). mwah, slay, go write some secure code, ily π«Άβ¨π
π¦ where this page comes from
- epel 10: globus-gss-assist-doc 12.7-4.el10_0 Β· Apache-2.0
- fedora 43: globus-gss-assist-doc 12.7-9.fc43 Β· Apache-2.0
- fedora 44: globus-gss-assist-doc 12.7-10.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gss-assist-doc 12.7-3build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms