| 1 |
/********************************************************************* |
| 2 |
* |
| 3 |
* Authors: Vincenzo Ciaschini - [email protected] |
| 4 |
* Valerio Venturi - [email protected] |
| 5 |
* |
| 6 |
* Copyright (c) Members of the EGEE Collaboration. 2004-2010. |
| 7 |
* See http://www.eu-egee.org/partners/ for details on the copyright holders. |
| 8 |
* |
| 9 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 |
* you may not use this file except in compliance with the License. |
| 11 |
* You may obtain a copy of the License at |
| 12 |
* |
| 13 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 14 |
* |
| 15 |
* Unless required by applicable law or agreed to in writing, software |
| 16 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 17 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 |
* See the License for the specific language governing permissions and |
| 19 |
* limitations under the License. |
| 20 |
* |
| 21 |
* Parts of this code may be based upon or even include verbatim pieces, |
| 22 |
* originally written by other people, in which case the original header |
| 23 |
* follows. |
| 24 |
* |
| 25 |
*********************************************************************/ |
| 26 |
|
| 27 |
#ifndef _OLDGAA_PARSERTYPES_H |
| 28 |
#define _OLDGAA_PARSERTYPES_H |
| 29 |
|
| 30 |
struct condition { |
| 31 |
char **subjects; |
| 32 |
char *original; |
| 33 |
int positive; |
| 34 |
}; |
| 35 |
|
| 36 |
#define TYPE_SIGNING 0 |
| 37 |
#define TYPE_NAMESPACE 1 |
| 38 |
|
| 39 |
struct policy { |
| 40 |
char *caname; |
| 41 |
int self; |
| 42 |
int type; |
| 43 |
struct condition **conds; |
| 44 |
}; |
| 45 |
|
| 46 |
#define SUCCESS_PERMIT 0 |
| 47 |
#define SUCCESS_DENY 1 |
| 48 |
#define SUCCESS_UNDECIDED 2 |
| 49 |
|
| 50 |
#endif |