Open SCAP Library: cce_priv.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

cce_priv.h
1 /*
2 * @file cce_priv.h
3 * \brief Interface to Common Configuration Enumeration (CCE) - internal definitions.
4 *
5 * See more details at http://cce.mitre.org/
6 */
7
8 /*
9 * Copyright 2008-2009 Red Hat Inc., Durham, North Carolina.
10 * All Rights Reserved.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Authors:
27 * Lukas Kuklinek <lkuklinek@redhat.com>
28 * Riley C. Porter <Riley.Porter@g2-inc.com>
29 */
30
31 #include <libxml/xmlreader.h>
32
33 #include "cce.h"
34 #include "../common/list.h"
35 #include "../common/util.h"
36
37 #ifndef _CCE_PRIV_H
38 #define _CCE_PRIV_H
39
40 OSCAP_HIDDEN_START;
41
42 struct cce {
43 struct oscap_list *entries;
44 struct oscap_htable *entry;
45 };
46
47 struct cce_entry {
48 char *id;
49 char *description;
50 struct oscap_list *params; // list of C-strings
51 struct oscap_list *tech_mechs; // list of C-strings
52 struct oscap_list *references; // list of 'struct cce_reference'
53 };
54
55 struct cce_reference {
56 char *source;
57 char *value;
58 };
59
60 void process_node(xmlTextReaderPtr reader, struct cce *cce);
61 void process_description(xmlTextReaderPtr reader, struct cce_entry *cce);
62 void process_parameter(xmlTextReaderPtr reader, struct cce_entry *cce);
63 void process_tech_mech(xmlTextReaderPtr reader, struct cce_entry *cce);
64 void process_refs(xmlTextReaderPtr reader, struct cce_entry *cce);
65
66 struct cce_entry *cce_entry_new_empty(void);
67 void cce_reference_free(struct cce_reference *ref);
68 void cce_entry_free(struct cce_entry *ref);
69
70 OSCAP_HIDDEN_END;
71
72 #endif
cce_reference
Structure holding a CCE reference.
Definition: cce_priv.h:55
cce
Structure holding CCE entries.
Definition: cce_priv.h:42
cce.h
cce_entry
Structure holding single CCE entry data.
Definition: cce_priv.h:47
oscap_list
Definition: list.h:54
oscap_htable
Definition: list.h:183