00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef OVAL_AGENT_API_IMPL_H_
00031 #define OVAL_AGENT_API_IMPL_H_
00032
00033 #include "public/oval_agent_api.h"
00034 #include "oval_definitions_impl.h"
00035 #include "../common/util.h"
00036
00037 OSCAP_HIDDEN_START;
00038
00039 #define OVAL_DEFAULT_VERSION "5.5"
00040
00041 #define OVAL_COMMON_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-common-5"
00042 #define OVAL_SYSCHAR_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"
00043 #define OVAL_RESULTS_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-results-5"
00044 #define OVAL_DEFINITIONS_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-definitions-5"
00045 #define OVAL_DIGSIG_NAMESPACE BAD_CAST "http://www.w3.org/2000/09/xmldsig#"
00046 #define OVAL_VARIABLES_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-variables-5"
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 #define OVAL_DEF_SCHEMA_LOCATION "http://oval.mitre.org/XMLSchema/oval-definitions-5 http://oval.mitre.org/language/download/schema/version5.5/ovaldefinition/complete/oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent http://oval.mitre.org/language/download/schema/version5.5/ovaldefinition/complete/independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix http://oval.mitre.org/language/download/schema/version5.5/ovaldefinition/complete/unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux http://oval.mitre.org/language/download/schema/version5.5/ovaldefinition/complete/linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 http://oval.mitre.org/language/download/schema/version5.5/ovaldefinition/complete/linux-common-schema.xsd"
00061
00062 #define OVAL_SYS_SCHEMA_LOCATION "http://oval.mitre.org/XMLSchema/oval-system-characteristics-5 http://oval.mitre.org/language/version5.5/ovalsc/complete/oval-system-characteristics-schema.xsd http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#independent http://oval.mitre.org/language/version5.5/ovalsc/complete/independent-system-characteristics-schema.xsd http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#unix http://oval.mitre.org/language/version5.5/ovalsc/complete/unix-system-characteristics-schema.xsd http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#linux http://oval.mitre.org/language/version5.5/ovalsc/complete/linux-system-characteristics-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 http://oval.mitre.org/language/version5.5/ovalsc/complete/oval-common-schema.xsd"
00063
00064 #define OVAL_RES_SCHEMA_LOCATION "http://oval.mitre.org/XMLSchema/oval-results-5 http://oval.mitre.org/language/version5.5/ovalresults/complete/oval-results-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 http://oval.mitre.org/language/version5.5/ovalresults/complete/oval-common-schema.xsd"
00065
00066 #define OVAL_XMLNS_XSI BAD_CAST "http://www.w3.org/2001/XMLSchema-instance"
00067
00068 const char * oval_definition_model_get_schema(struct oval_definition_model * model);
00069 void oval_definition_model_set_schema(struct oval_definition_model *model, const char *version);
00070
00071 struct oval_definition *oval_definition_get_new(struct oval_definition_model *, char *);
00072
00073 typedef bool oval_definitions_resolver(struct oval_definition *, void *);
00074
00075 xmlNode *oval_definitions_to_dom
00076 (struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode * parent,
00077 oval_definitions_resolver resolver, void *user_arg);
00078
00079 struct oval_test *oval_test_get_new(struct oval_definition_model *, char *);
00080 struct oval_object *oval_object_get_new(struct oval_definition_model *, char *);
00081 struct oval_state *oval_state_get_new(struct oval_definition_model *, char *);
00082 struct oval_variable *oval_variable_get_new(struct oval_definition_model *, char *, oval_variable_type_t type);
00083
00084 struct oval_syschar *oval_syschar_get_new(struct oval_syschar_model *, struct oval_object *);
00085 struct oval_syschar_item *oval_syschar_item_get_new(struct oval_syschar_model *, char *);
00086 struct oval_sysdata *oval_sysdata_get_new(struct oval_syschar_model *model, char *id);
00087
00088 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
00089
00090 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *);
00091
00092 OSCAP_HIDDEN_END;
00093
00094 #endif