globus_xio_gsi_driver
3.6
Main Page
Modules
Files
File List
Globals
All
Files
Functions
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
globus_xio_gsi.h
Go to the documentation of this file.
1
/*
2
* Copyright 1999-2006 University of Chicago
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef GLOBUS_XIO_GSI_DRIVER_H
18
#define GLOBUS_XIO_GSI_DRIVER_H
19
27
#include "gssapi.h"
28
#include "globus_common.h"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
35
#ifndef GLOBUS_GLOBAL_DOCUMENT_SET
36
40
#endif
41
137
typedef
enum
138
{
142
GLOBUS_XIO_GSI_ERROR_INVALID_PROTECTION_LEVEL
,
144
GLOBUS_XIO_GSI_ERROR_WRAP_GSSAPI
,
148
GLOBUS_XIO_GSI_ERROR_EMPTY_TARGET_NAME
,
152
GLOBUS_XIO_GSI_ERROR_EMPTY_HOST_NAME
,
154
GLOBUS_XIO_GSI_AUTHORIZATION_FAILED
,
158
GLOBUS_XIO_GSI_ERROR_TOKEN_TOO_BIG
159
}
globus_xio_gsi_error_t
;
160
168
#define globus_xio_gsi_attr_cntl globus_xio_attr_cntl
169
#define globus_xio_gsi_handle_cntl globus_xio_handle_cntl
170
175
typedef
enum
176
{
188
/* gss_cred_id_t credential */
189
GLOBUS_XIO_GSI_SET_CREDENTIAL
,
190
201
/* gss_cred_id_t * credential */
202
GLOBUS_XIO_GSI_GET_CREDENTIAL
,
203
211
/* OM_uint32 req_flags */
212
GLOBUS_XIO_GSI_SET_GSSAPI_REQ_FLAGS
,
213
221
/* OM_uint32 * req_flags */
222
GLOBUS_XIO_GSI_GET_GSSAPI_REQ_FLAGS
,
223
232
/* globus_xio_gsi_proxy_mode_t proxy_mode*/
233
GLOBUS_XIO_GSI_SET_PROXY_MODE
,
234
243
/* globus_xio_gsi_proxy_mode_t * proxy_mode*/
244
GLOBUS_XIO_GSI_GET_PROXY_MODE
,
245
253
/* globus_xio_gsi_authorization_mode_t authz_mode*/
254
GLOBUS_XIO_GSI_SET_AUTHORIZATION_MODE
,
255
263
/* globus_xio_gsi_authorization_mode_t * authz_mode*/
264
GLOBUS_XIO_GSI_GET_AUTHORIZATION_MODE
,
265
274
/* globus_xio_gsi_delegation_mode_t delegation_mode*/
275
GLOBUS_XIO_GSI_SET_DELEGATION_MODE
,
276
284
/* globus_xio_gsi_delegation_mode_t * delegation_mode*/
285
GLOBUS_XIO_GSI_GET_DELEGATION_MODE
,
286
297
/* globus_bool_t ssl_mode*/
298
GLOBUS_XIO_GSI_SET_SSL_COMPATIBLE
,
299
309
/* globus_bool_t anon_mode*/
310
GLOBUS_XIO_GSI_SET_ANON
,
311
322
/* globus_bool_t wrap_mode*/
323
GLOBUS_XIO_GSI_SET_WRAP_MODE
,
324
335
/* globus_bool_t * wrap_mode*/
336
GLOBUS_XIO_GSI_GET_WRAP_MODE
,
337
349
/* globus_size_t buffer_size*/
350
GLOBUS_XIO_GSI_SET_BUFFER_SIZE
,
351
363
/* globus_size_t * buffer_size*/
364
GLOBUS_XIO_GSI_GET_BUFFER_SIZE
,
365
374
/* globus_xio_gsi_protection_level_t protection_level*/
375
GLOBUS_XIO_GSI_SET_PROTECTION_LEVEL
,
376
384
/* globus_xio_gsi_protection_level_t * protection_level*/
385
GLOBUS_XIO_GSI_GET_PROTECTION_LEVEL
,
386
394
/* gss_name_t * target_name */
395
GLOBUS_XIO_GSI_GET_TARGET_NAME
,
396
404
/* gss_name_t target_name */
405
GLOBUS_XIO_GSI_SET_TARGET_NAME
,
406
414
/* gss_ctx_id_t * context */
415
GLOBUS_XIO_GSI_GET_CONTEXT
,
416
424
/* gss_cred_id_t * credential */
425
GLOBUS_XIO_GSI_GET_DELEGATED_CRED
,
426
434
/* gss_name_t * peer_name */
435
GLOBUS_XIO_GSI_GET_PEER_NAME
,
436
444
/* gss_name_t * local_name */
445
GLOBUS_XIO_GSI_GET_LOCAL_NAME
,
446
461
/* gss_cred_id_t credential,
462
gss_OID_set restriction_oids,
463
gss_buffer_set_t restriction_buffers,
464
OM_uint32 time_req */
465
GLOBUS_XIO_GSI_INIT_DELEGATION
,
466
485
/* gss_cred_id_t credential,
486
gss_OID_set restriction_oids,
487
gss_buffer_set_t restriction_buffers,
488
OM_uint32 time_req,
489
globus_xio_gsi_delegation_init_callback_t callback,
490
void * callback_arg */
491
GLOBUS_XIO_GSI_REGISTER_INIT_DELEGATION
,
506
/* gss_cred_id_t * credential,
507
gss_OID_set restriction_oids,
508
gss_buffer_set_t restriction_buffers,
509
OM_uint32 time_req */
510
GLOBUS_XIO_GSI_ACCEPT_DELEGATION
,
511
528
/* gss_OID_set restriction_oids,
529
gss_buffer_set_t restriction_buffers,
530
OM_uint32 time_req,
531
globus_xio_gsi_delegation_accept_callback_t callback,
532
void * callback_arg */
533
GLOBUS_XIO_GSI_REGISTER_ACCEPT_DELEGATION
,
534
545
/* globus_bool_t server_mode */
546
GLOBUS_XIO_GSI_FORCE_SERVER_MODE
,
547
556
/* globus_bool_t allow*/
557
GLOBUS_XIO_GSI_SET_ALLOW_MISSING_SIGNING_POLICY
,
558
566
/* globus_bool_t * allow*/
567
GLOBUS_XIO_GSI_GET_ALLOW_MISSING_SIGNING_POLICY
568
}
globus_xio_gsi_cmd_t
;
569
574
typedef
enum
575
{
577
GLOBUS_XIO_GSI_PROTECTION_LEVEL_NONE
,
579
GLOBUS_XIO_GSI_PROTECTION_LEVEL_INTEGRITY
,
581
GLOBUS_XIO_GSI_PROTECTION_LEVEL_PRIVACY
582
}
globus_xio_gsi_protection_level_t
;
583
588
typedef
enum
589
{
591
GLOBUS_XIO_GSI_DELEGATION_MODE_NONE
,
593
GLOBUS_XIO_GSI_DELEGATION_MODE_LIMITED
,
595
GLOBUS_XIO_GSI_DELEGATION_MODE_FULL
596
}
globus_xio_gsi_delegation_mode_t
;
597
602
typedef
enum
603
{
605
GLOBUS_XIO_GSI_PROXY_MODE_FULL
,
609
GLOBUS_XIO_GSI_PROXY_MODE_LIMITED
,
611
GLOBUS_XIO_GSI_PROXY_MODE_MANY
612
}
globus_xio_gsi_proxy_mode_t
;
613
614
619
typedef
enum
620
{
624
GLOBUS_XIO_GSI_NO_AUTHORIZATION
,
626
GLOBUS_XIO_GSI_SELF_AUTHORIZATION
,
630
GLOBUS_XIO_GSI_IDENTITY_AUTHORIZATION
,
634
GLOBUS_XIO_GSI_HOST_AUTHORIZATION
635
}
globus_xio_gsi_authorization_mode_t
;
636
641
typedef
void (*
globus_xio_gsi_delegation_init_callback_t
)(
642
globus_result_t result,
643
void
* user_arg);
644
649
typedef
void (*
globus_xio_gsi_delegation_accept_callback_t
)(
650
globus_result_t result,
651
gss_cred_id_t delegated_cred,
652
OM_uint32 time_rec,
653
void
* user_arg);
654
655
#ifdef __cplusplus
656
}
657
#endif
658
659
#endif
/* GLOBUS_XIO_GSI_DRIVER_H */
Generated on Mon Oct 5 2015 15:22:55 for globus_xio_gsi_driver by
1.8.1.2