~ubuntu-branches/ubuntu/saucy/lcmaps-plugins-voms/saucy

« back to all changes in this revision

Viewing changes to src/voms/lcmaps_gridlist.h

  • Committer: Package Import Robot
  • Author(s): Dennis van Dok
  • Date: 2012-11-06 00:50:24 UTC
  • Revision ID: package-import@ubuntu.com-20121106005024-0513ko4vca18a53l
Tags: upstream-1.5.5
ImportĀ upstreamĀ versionĀ 1.5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright (c) Members of the EGEE Collaboration. 2004-2010. 
 
3
 * See http://www.eu-egee.org/partners/ for details on the copyright
 
4
 * holders.  
 
5
 * 
 
6
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 
7
 * you may not use this file except in compliance with the License. 
 
8
 * You may obtain a copy of the License at 
 
9
 * 
 
10
 *     http://www.apache.org/licenses/LICENSE-2.0 
 
11
 * 
 
12
 * Unless required by applicable law or agreed to in writing, software 
 
13
 * distributed under the License is distributed on an "AS IS" BASIS, 
 
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 
15
 * See the License for the specific language governing permissions and 
 
16
 * limitations under the License.
 
17
 *
 
18
 *
 
19
 *  Authors:
 
20
 *  2009-
 
21
 *     Oscar Koeroo <okoeroo@nikhef.nl>
 
22
 *     Mischa Sall\'e <msalle@nikhef.nl>
 
23
 *     David Groep <davidg@nikhef.nl>
 
24
 *     NIKHEF Amsterdam, the Netherlands
 
25
 *     <grid-mw-security@nikhef.nl> 
 
26
 *
 
27
 *  2007-2009
 
28
 *     Oscar Koeroo <okoeroo@nikhef.nl>
 
29
 *     David Groep <davidg@nikhef.nl>
 
30
 *     NIKHEF Amsterdam, the Netherlands
 
31
 *
 
32
 *  2003-2007
 
33
 *     Martijn Steenbakkers <martijn@nikhef.nl>
 
34
 *     Gerben Venekamp <venekamp@nikhef.nl>
 
35
 *     Oscar Koeroo <okoeroo@nikhef.nl>
 
36
 *     David Groep <davidg@nikhef.nl>
 
37
 *     NIKHEF Amsterdam, the Netherlands
 
38
 *
 
39
 */
 
40
 
 
41
/******************************************************************************
 
42
 
 
43
lcmaps_gridlist.h
 
44
 
 
45
Description:
 
46
    This header file contains the LCMAPS gridlist routines definitions
 
47
 
 
48
CVS Information:
 
49
    $Source: /srv/home/dennisvd/svn/mw-security/lcmaps-plugins-voms/src/gridlist/lcmaps_gridlist.h,v $
 
50
    $Date: 2010-02-19 06:01:37 $
 
51
    $Revision: 1.7 $
 
52
    $Author: okoeroo $
 
53
 
 
54
******************************************************************************/
 
55
 
 
56
 
 
57
#ifndef LCMAPS_GRIDLIST_H
 
58
#define LCMAPS_GRIDLIST_H
 
59
 
 
60
/******************************************************************************
 
61
                             Include header files
 
62
******************************************************************************/
 
63
 
 
64
/******************************************************************************
 
65
                               Define constants
 
66
******************************************************************************/
 
67
 
 
68
/******************************************************************************
 
69
                               Type definitions
 
70
******************************************************************************/
 
71
 
 
72
/******************************************************************************
 
73
                               Global variables
 
74
******************************************************************************/
 
75
 
 
76
/******************************************************************************
 
77
                              Function prototypes
 
78
******************************************************************************/
 
79
 
 
80
#ifndef LCMAPS_GRIDLIST_C
 
81
#define STORAGE_CLASS extern
 
82
#else
 
83
#define STORAGE_CLASS
 
84
#endif
 
85
 
 
86
STORAGE_CLASS int
 
87
lcmaps_gridlist(
 
88
    char *          globusidp,
 
89
    char **         useridp,
 
90
    char *          globusidfile,
 
91
    unsigned short  matching_type,
 
92
    char *          searchstr,
 
93
    const char *    dnsuffix
 
94
);
 
95
 
 
96
STORAGE_CLASS char *  gridmapdir_urlencode(char * rawstring);
 
97
 
 
98
#define MATCH_INCLUDE             ((unsigned short)0x0001)
 
99
#define MATCH_EXCLUDE             ((unsigned short)0x0000)
 
100
#define MATCH_WILD_CHARS          ((unsigned short)0x0002)
 
101
#define MATCH_NO_WILD_CHARS       ((unsigned short)0x0000)
 
102
#define OVERRIDE_INCONSISTANCY    ((unsigned short)0x0004)
 
103
#define MATCH_ONLY_DN             ((unsigned short)0x0008)
 
104
#define MATCH_STRICT_PREFIX_NUM   ((unsigned short)0x0010)
 
105
#define ONLY_USE_EXISTING_LEASE   ((unsigned short)0x0020)
 
106
#define INCLUDE    3
 
107
#define EXCLUDE    4
 
108
 
 
109
#endif /* LCMAPS_GRIDLIST_H */
 
110
 
 
111
 
 
112