CGSI_gSOAP  1.3.5
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 
29 #include <stdsoap2.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 
41 #define CGSI_OPT_CLIENT 0x1
42 
43 #define CGSI_OPT_SERVER 0x2
44 
45 #define CGSI_OPT_DELEG_FLAG 0x4
46 
47 #define CGSI_OPT_SSL_COMPATIBLE 0x8
48 
49 #define CGSI_OPT_DISABLE_NAME_CHECK 0x10
50 
51 #define CGSI_OPT_KEEP_ALIVE 0x20
52 
53 #define CGSI_OPT_DISABLE_MAPPING 0x40
54 
56 #define CGSI_OPT_DISABLE_VOMS_CHECK 0x80
57 
59 #define CGSI_OPT_ALLOW_ONLY_SELF 0x100
60 
73 int soap_cgsi_init(struct soap *soap, int cgsi_options);
74 
84 int cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
85 
95 int client_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
96 
106 int server_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
107 
115 int is_context_established(struct soap *soap);
116 
126 int get_client_dn(struct soap *soap, char *dn, size_t dnlen);
127 
137 int get_client_username(struct soap *soap, char *username, size_t dnlen);
138 
151 int get_delegated_credentials(struct soap *soap, void **buffer, size_t *length);
152 
161 int export_delegated_credentials(struct soap *soap, char *filename);
162 
170 int has_delegated_credentials(struct soap *soap);
171 
180 int set_default_proxy_file(struct soap *soap, char *filename);
181 
188 void clear_default_proxy_file(int unlink_file);
189 
199 int retrieve_voms_creds(struct soap *soap);
200 int retrieve_userca_and_voms_creds(struct soap *soap);
201 
210 char *get_client_ca(struct soap *soap);
211 
220 char *get_client_voname(struct soap *soap);
221 
232 char ** get_client_roles(struct soap *soap, int* nbfqans);
233 
234 
249 int cgsi_plugin_set_flags(struct soap *soap, int is_server, int flags);
250 
265 int cgsi_plugin_clr_flags(struct soap *soap, int is_server, int flags);
266 
276 int cgsi_plugin_get_flags(struct soap *soap, int is_server);
277 
278 #ifdef __cplusplus
279 }
280 #endif
Copyright © 2004-2009 EU-EGEE