cgsi_plugin.h(3) | CGSI_gSOAP | cgsi_plugin.h(3) |
cgsi_plugin.h - Header file for the GSI gSOAP plugin.
#include <stdsoap2.h>
#define CGSI_OPT_CLIENT 0x1
#define CGSI_OPT_SERVER 0x2
#define CGSI_OPT_DELEG_FLAG 0x4
#define CGSI_OPT_SSL_COMPATIBLE 0x8
#define CGSI_OPT_DISABLE_NAME_CHECK 0x10
#define CGSI_OPT_KEEP_ALIVE 0x20
#define CGSI_OPT_DISABLE_MAPPING 0x40
#define CGSI_OPT_DISABLE_VOMS_CHECK 0x80
#define CGSI_OPT_ALLOW_ONLY_SELF 0x100
int soap_cgsi_init (struct soap *soap, int cgsi_options)
int cgsi_plugin (struct soap *soap, struct soap_plugin *plugin, void
*arg)
int client_cgsi_plugin (struct soap *soap, struct soap_plugin *plugin,
void *arg)
int server_cgsi_plugin (struct soap *soap, struct soap_plugin *plugin,
void *arg)
int is_context_established (struct soap *soap)
int get_client_dn (struct soap *soap, char *dn, size_t dnlen)
int get_client_username (struct soap *soap, char *username, size_t
dnlen)
int get_delegated_credentials (struct soap *soap, void **buffer, size_t
*length)
int export_delegated_credentials (struct soap *soap, char *filename)
int has_delegated_credentials (struct soap *soap)
int set_default_proxy_file (struct soap *soap, char *filename)
void clear_default_proxy_file (int unlink_file)
int retrieve_voms_creds (struct soap *soap)
int retrieve_userca_and_voms_creds (struct soap *soap)
char * get_client_ca (struct soap *soap)
char * get_client_voname (struct soap *soap)
char ** get_client_roles (struct soap *soap, int *nbfqans)
int cgsi_plugin_set_flags (struct soap *soap, int is_server, int flags)
int cgsi_plugin_clr_flags (struct soap *soap, int is_server, int flags)
int cgsi_plugin_get_flags (struct soap *soap, int is_server)
int cgsi_plugin_set_credentials (struct soap *soap, int is_server,
const char *x509_cert, const char *x509_key)
Header file for the GSI gSOAP plugin.
cgsi_plugin.h - Header file for the GSI gSOAP plugin
Author
This is a GSI plugin for gSOAP. It uses the globus GSI libraries to implement GSI secure authentification and encryption on top of gSOAP. The globus GSI bundle is necessary for the plugin to compile and run.
Allow client and server to only connect together when they have the same identity
Options that can be specified when initializing the cgsi_plugin (in the arg parameter): The program acts as a client.
Initiate delegation over the HTTPG protocol.
Disable DN->userid mapping via gridmap-file.
Disable comparing the server's host name with its certificate's CN.
Disable connect time VOMS parsing for better error handling via an explicit call to retrieve_voms_creds()
Keep alive the HTTP connection.
The program acts as a server.
Using pure SSL protocol, for compatibility.
Generic contructor for the cgsi_plugin
Parameters
Returns
Adjust CGSI-plugin's behaviour by clearing one or more flags. If a flag is not present in args then it is unaffected by this operation. If a flag is currently cleared then attempting to clear it will have no effect.
Parameters
Returns
Discover the current set of flags that are in effect.
Parameters
Returns
Set credentials without using environment variables
Parameters
Returns
Adjust CGSI-plugin's behaviour by setting one or more flags. If a flag is not present in args then that flag is unaffected by this operation. If a flag is currently set then attempting to set it will have no effect.
Parameters
Returns
Clears the env variable used by GSI to specify the proxy filename
Parameters
Client contructor for the cgsi_plugin
Parameters
Returns
Export the delegated credentials (if available) to a file
Parameters
Returns
Returns the client CA
Parameters
Returns
Gets the Distinguished name (DN) of the client
Parameters
Returns
Returns the client VO roles if they were provided in the certificate
Parameters
Returns
Gets the username (DN) of the client
Parameters
Returns
Returns the client VO name if it was provided in the certificate
Parameters
Returns
Make the delegated credential available as a token in memory. The soap structure retains ownership of the memory. The user should not free the pointer returned by this function, nor use it after the soap object becomes invalid.
Parameters
Returns
Checks whether the client delegated credentials to the server
Parameters
Returns
Checks whether the security context has been established properly
Parameters
Returns
Parses the optional VOMS extension of the peer certificate. It has to be called before get_client_voname() and get_client_roles()!
Parameters
Returns
Server contructor for the cgsi_plugin
Parameters
Returns
Sets the env variable for GSI to use the proxy in the specified filename
Parameters
Returns
Helper function to create the gsoap object and the cgsi_plugin at the same time. This function assumes that a client plugin is specified, to create a server plugin, use the CGSI_OPT_SERVER option.
Parameters
Returns
Generated automatically by Doxygen for CGSI_gSOAP from the source code.
Sat Dec 24 2022 | Version 1.3.11 |