#include <stdsoap2.h>
Go to the source code of this file.
Defines | |
#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 |
Functions | |
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 | 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_credentials (struct soap *soap) |
char * | get_client_voname (struct soap *soap) |
char ** | get_client_roles (struct soap *soap, int *nbfqans) |
#define CGSI_OPT_ALLOW_ONLY_SELF 0x100 |
Allow client and server to only connect together when they have the same identity
#define CGSI_OPT_CLIENT 0x1 |
The program acts as a client.
#define CGSI_OPT_DELEG_FLAG 0x4 |
Initiate delegation over the HTTPG protocol.
#define CGSI_OPT_DISABLE_MAPPING 0x40 |
Disable DN->userid mapping via gridmap-file.
#define CGSI_OPT_DISABLE_NAME_CHECK 0x10 |
Disable comparing the server's host name with its certificate's CN.
#define CGSI_OPT_DISABLE_VOMS_CHECK 0x80 |
Disable connect time VOMS parsing for better error handling via an explicit call to retrieve_voms_credentials()
#define CGSI_OPT_KEEP_ALIVE 0x20 |
Keep alive the HTTP connection.
#define CGSI_OPT_SERVER 0x2 |
The program acts as a server.
#define CGSI_OPT_SSL_COMPATIBLE 0x8 |
Using pure SSL protocol, for compatibility.
int cgsi_plugin | ( | struct soap * | soap, | |
struct soap_plugin * | plugin, | |||
void * | arg | |||
) |
Generic contructor for the cgsi_plugin
soap | The soap structure for the request | |
plugin | Pointer to the plugin data structure | |
arg | The parameters for the plugin creation |
void clear_default_proxy_file | ( | int | unlink_file | ) |
Clears the env variable used by GSI to specify the proxy filename
unlink_file | Set to 1 if you want to destroy the credential file as well |
int client_cgsi_plugin | ( | struct soap * | soap, | |
struct soap_plugin * | plugin, | |||
void * | arg | |||
) |
Client contructor for the cgsi_plugin
soap | The soap structure for the request | |
plugin | Pointer to the plugin data structure | |
arg | The parameters for the plugin creation (CGSI_OPT_CLIENT assumed) |
int export_delegated_credentials | ( | struct soap * | soap, | |
char * | filename | |||
) |
Export the delegated credentials (if available) to a file
soap | The soap structure for the request | |
filename | Name of the file where the credentials are to be written |
int get_client_dn | ( | struct soap * | soap, | |
char * | dn, | |||
size_t | dnlen | |||
) |
Gets the Distinguished name (DN) of the client
soap | The soap structure for the request | |
dn | Pointer to a buffer where the DN is to be written | |
dnlen | The length of the buffer |
char** get_client_roles | ( | struct soap * | soap, | |
int * | nbfqans | |||
) |
Returns the client VO roles if they were provided in the certificate
soap | The soap structure for the request |
int get_client_username | ( | struct soap * | soap, | |
char * | username, | |||
size_t | dnlen | |||
) |
Gets the username (DN) of the client
soap | The soap structure for the request | |
username | Pointer to a buffer where the username is to be written | |
dnlen | The length of the buffer |
char* get_client_voname | ( | struct soap * | soap | ) |
Returns the client VO name if it was provided in the certificate
soap | The soap structure for the request |
int has_delegated_credentials | ( | struct soap * | soap | ) |
Checks whether the client delegated credentials to the server
soap | The soap structure for the request |
int is_context_established | ( | struct soap * | soap | ) |
Checks whether the security context has been established properly
soap | The soap structure for the request |
int retrieve_voms_credentials | ( | struct soap * | soap | ) |
Parses the optional VOMS extension of the peer certificate. It has to be called before get_client_voname() and get_client_roles()!
soap | The soap structure for the request |
int server_cgsi_plugin | ( | struct soap * | soap, | |
struct soap_plugin * | plugin, | |||
void * | arg | |||
) |
Server contructor for the cgsi_plugin
soap | The soap structure for the request | |
plugin | Pointer to the plugin data structure | |
arg | The parameters for the plugin creation (CGSI_OPT_SERVER assumed) |
int set_default_proxy_file | ( | struct soap * | soap, | |
char * | filename | |||
) |
Sets the env variable for GSI to use the proxy in the specified filename
soap | The soap structure for the request | |
filename | Name of the file where credentials are stored |
int soap_cgsi_init | ( | struct soap * | soap, | |
int | cgsi_options | |||
) |
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.
soap | The soap structure for the request | |
cgsi_options | The parameters for the plugin creation (bitwise or of the different options). |
Copyright © 2004-2006 EU-EGEE