CGSI_gSOAP 1.3.12
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
33extern "C" {
34#endif
35
36
42#define CGSI_OPT_CLIENT 0x1
44#define CGSI_OPT_SERVER 0x2
46#define CGSI_OPT_DELEG_FLAG 0x4
48#define CGSI_OPT_SSL_COMPATIBLE 0x8
50#define CGSI_OPT_DISABLE_NAME_CHECK 0x10
52#define CGSI_OPT_KEEP_ALIVE 0x20
54#define CGSI_OPT_DISABLE_MAPPING 0x40
57#define CGSI_OPT_DISABLE_VOMS_CHECK 0x80
60#define CGSI_OPT_ALLOW_ONLY_SELF 0x100
61
74int soap_cgsi_init(struct soap *soap, int cgsi_options);
75
85int cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
86
96int client_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
97
107int server_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg);
108
116int is_context_established(struct soap *soap);
117
127int get_client_dn(struct soap *soap, char *dn, size_t dnlen);
128
138int get_client_username(struct soap *soap, char *username, size_t dnlen);
139
152int get_delegated_credentials(struct soap *soap, void **buffer, size_t *length);
153
162int export_delegated_credentials(struct soap *soap, char *filename);
163
171int has_delegated_credentials(struct soap *soap);
172
181int set_default_proxy_file(struct soap *soap, char *filename);
182
189void clear_default_proxy_file(int unlink_file);
190
200int retrieve_voms_creds(struct soap *soap);
201int retrieve_userca_and_voms_creds(struct soap *soap);
202
211char *get_client_ca(struct soap *soap);
212
221char *get_client_voname(struct soap *soap);
222
233char ** get_client_roles(struct soap *soap, int* nbfqans);
234
235
250int cgsi_plugin_set_flags(struct soap *soap, int is_server, int flags);
251
266int cgsi_plugin_clr_flags(struct soap *soap, int is_server, int flags);
267
277int cgsi_plugin_get_flags(struct soap *soap, int is_server);
278
289int 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 cgsi_plugin_set_flags(struct soap *soap, int is_server, int flags)
void clear_default_proxy_file(int unlink_file)
int client_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg)
int get_client_dn(struct soap *soap, char *dn, size_t dnlen)
int cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg)
int get_delegated_credentials(struct soap *soap, void **buffer, size_t *length)
int retrieve_userca_and_voms_creds(struct soap *soap)
int is_context_established(struct soap *soap)
int has_delegated_credentials(struct soap *soap)
int get_client_username(struct soap *soap, char *username, size_t dnlen)
char ** get_client_roles(struct soap *soap, int *nbfqans)
int cgsi_plugin_set_credentials(struct soap *soap, int is_server, const char *x509_cert, const char *x509_key)
int soap_cgsi_init(struct soap *soap, int cgsi_options)
int export_delegated_credentials(struct soap *soap, char *filename)
char * get_client_ca(struct soap *soap)
int set_default_proxy_file(struct soap *soap, char *filename)
int cgsi_plugin_get_flags(struct soap *soap, int is_server)
int server_cgsi_plugin(struct soap *soap, struct soap_plugin *plugin, void *arg)
int cgsi_plugin_clr_flags(struct soap *soap, int is_server, int flags)
char * get_client_voname(struct soap *soap)
int retrieve_voms_creds(struct soap *soap)
Copyright © 2004-2009 EU-EGEE