CGSI_gSOAP  1.3.11
cgsi_plugin.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Members of the EGEE Collaboration. 2004.
3  * See http://www.eu-egee.org/partners/ for details on the copyright holders.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
30 #include <stdsoap2.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 
42 #define CGSI_OPT_CLIENT 0x1
43 
44 #define CGSI_OPT_SERVER 0x2
45 
46 #define CGSI_OPT_DELEG_FLAG 0x4
47 
48 #define CGSI_OPT_SSL_COMPATIBLE 0x8
49 
50 #define CGSI_OPT_DISABLE_NAME_CHECK 0x10
51 
52 #define CGSI_OPT_KEEP_ALIVE 0x20
53 
54 #define CGSI_OPT_DISABLE_MAPPING 0x40
55 
57 #define CGSI_OPT_DISABLE_VOMS_CHECK 0x80
58 
60 #define CGSI_OPT_ALLOW_ONLY_SELF 0x100
61 
74 int soap_cgsi_init(struct soap *soap, int cgsi_options);
75 
85 int cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
86 
96 int client_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
97 
107 int server_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
108 
116 int is_context_established(struct soap *soap);
117 
127 int get_client_dn(struct soap *soap, char *dn, size_t dnlen);
128 
138 int get_client_username(struct soap *soap, char *username, size_t dnlen);
139 
152 int get_delegated_credentials(struct soap *soap, void **buffer, size_t *length);
153 
162 int export_delegated_credentials(struct soap *soap, char *filename);
163 
171 int has_delegated_credentials(struct soap *soap);
172 
181 int set_default_proxy_file(struct soap *soap, char *filename);
182 
189 void clear_default_proxy_file(int unlink_file);
190 
200 int retrieve_voms_creds(struct soap *soap);
201 int retrieve_userca_and_voms_creds(struct soap *soap);
202 
211 char *get_client_ca(struct soap *soap);
212 
221 char *get_client_voname(struct soap *soap);
222 
233 char ** get_client_roles(struct soap *soap, int* nbfqans);
234 
235 
250 int cgsi_plugin_set_flags(struct soap *soap, int is_server, int flags);
251 
266 int cgsi_plugin_clr_flags(struct soap *soap, int is_server, int flags);
267 
277 int cgsi_plugin_get_flags(struct soap *soap, int is_server);
278 
289 int cgsi_plugin_set_credentials(struct soap *soap, int is_server, const char* x509_cert, const char* x509_key);
290 
291 #ifdef __cplusplus
292 }
293 #endif
int set_default_proxy_file(struct soap *soap, char *filename)
int retrieve_userca_and_voms_creds(struct soap *soap)
int retrieve_voms_creds(struct soap *soap)
int client_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg)
char * get_client_voname(struct soap *soap)
char ** get_client_roles(struct soap *soap, int *nbfqans)
int soap_cgsi_init(struct soap *soap, int cgsi_options)
int cgsi_plugin_set_flags(struct soap *soap, int is_server, int flags)
int server_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg)
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 get_client_dn(struct soap *soap, char *dn, size_t dnlen)
int cgsi_plugin_get_flags(struct soap *soap, int is_server)
int cgsi_plugin_clr_flags(struct soap *soap, int is_server, int flags)
void clear_default_proxy_file(int unlink_file)
int cgsi_plugin_set_credentials(struct soap *soap, int is_server, const char *x509_cert, const char *x509_key)
int has_delegated_credentials(struct soap *soap)
int is_context_established(struct soap *soap)
int cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg)
char * get_client_ca(struct soap *soap)
Copyright © 2004-2009 EU-EGEE