00001
00002
00003
00004
00005
00006
00007
00008
00020 #include <stdsoap2.h>
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026
00031 #define CGSI_OPT_CLIENT 0x1
00032 #define CGSI_OPT_SERVER 0x2
00033 #define CGSI_OPT_DELEG_FLAG 0x4
00034 #define CGSI_OPT_SSL_COMPATIBLE 0x8
00035 #define CGSI_OPT_DISABLE_NAME_CHECK 0x10
00036 #define CGSI_OPT_KEEP_ALIVE 0x20
00037
00050 int soap_cgsi_init(struct soap *soap, int cgsi_options);
00051
00061 int cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
00062
00072 int client_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
00073
00083 int server_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
00084
00092 int is_context_established(struct soap *soap);
00093
00103 int get_client_dn(struct soap *soap, char *dn, size_t dnlen);
00104
00114 int get_client_username(struct soap *soap, char *username, size_t dnlen);
00115
00124 int export_delegated_credentials(struct soap *soap, char *filename);
00125
00133 int has_delegated_credentials(struct soap *soap);
00134
00143 int set_default_proxy_file(struct soap *soap, char *filename);
00144
00151 void clear_default_proxy_file(int unlink_file);
00152
00160 char *get_client_voname(struct soap *soap);
00161
00169 char ** get_client_roles(struct soap *soap, int* nbfqans);
00170
00171
00172 #ifdef __cplusplus
00173 }
00174 #endif
00175
00176
00177
00178
00179
00180