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_ENUMERATION_INVALID (-1)
00040
00041 #define OVAL_DEFAULT_VERSION "5.5"
00042
00043 #define OVAL_COMMON_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-common-5"
00044 #define OVAL_SYSCHAR_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"
00045 #define OVAL_RESULTS_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-results-5"
00046 #define OVAL_DEFINITIONS_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-definitions-5"
00047 #define OVAL_DIGSIG_NAMESPACE BAD_CAST "http://www.w3.org/2000/09/xmldsig#"
00048 #define OVAL_VARIABLES_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-variables-5"
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 #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"
00063
00064 #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"
00065
00066 #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"
00067
00068 #define OVAL_XMLNS_XSI BAD_CAST "http://www.w3.org/2001/XMLSchema-instance"
00069
00070 const char * oval_definition_model_get_schema(struct oval_definition_model * model);
00071 void oval_definition_model_set_schema(struct oval_definition_model *model, const char *version);
00072
00073 void oval_syschar_model_set_schema(struct oval_syschar_model *model, const char * schema);
00074 const char * oval_syschar_model_get_schema(struct oval_syschar_model * model);
00075
00076 struct oval_definition *oval_definition_get_new(struct oval_definition_model *, const char *);
00077
00078 typedef bool oval_definitions_resolver(struct oval_definition *, void *);
00079
00080 xmlNode *oval_definitions_to_dom(struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode * parent);
00081
00082 struct oval_test *oval_test_get_new(struct oval_definition_model *, const char *);
00083 struct oval_object *oval_object_get_new(struct oval_definition_model *, const char *);
00084 struct oval_state *oval_state_get_new(struct oval_definition_model *, const char *);
00085 struct oval_variable *oval_variable_get_new(struct oval_definition_model *, const char *, oval_variable_type_t type);
00086
00087 struct oval_syschar *oval_syschar_get_new(struct oval_syschar_model *, struct oval_object *);
00088 struct oval_syschar_item *oval_syschar_item_get_new(struct oval_syschar_model *, const char *);
00089 struct oval_sysdata *oval_sysdata_get_new(struct oval_syschar_model *model, const char *id);
00090
00091 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
00092
00093 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *);
00094
00095 OSCAP_HIDDEN_END;
00096
00097 #endif