oval_test.c File Reference

Open Vulnerability and Assessment Language. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "public/oval_types.h"
#include "oval_definitions_impl.h"
#include "adt/oval_collection_impl.h"
#include "oval_agent_api_impl.h"
#include "common/oscap_string.h"
#include "common/util.h"
#include "common/debug_priv.h"
#include "common/elements.h"
#include "common/_error.h"

Data Structures

struct  oval_test
 An Oval_test specifies a technical control by identifying an oval_object that is evaluated on an instrumented host platform and, optionally, an Oval_state instance that matches the object query. More...

Typedefs

typedef struct oval_test oval_test_t

Functions

bool oval_test_iterator_has_more (struct oval_test_iterator *oc_test)
 Returns true if the iterator is not exhausted.
struct oval_testoval_test_iterator_next (struct oval_test_iterator *oc_test)
 Returns the next instance of oval_test.
void oval_test_iterator_free (struct oval_test_iterator *oc_test)
 Frees the iterator.
oval_family_t oval_test_get_family (struct oval_test *test)
 Returns attribute Oval_test->family oval_test.
oval_subtype_t oval_test_get_subtype (struct oval_test *test)
 Returns attribute Oval_test->subtype oval_test.
struct oval_string_iterator * oval_test_get_notes (struct oval_test *test)
 Returns attribute oval_test->notes.
char * oval_test_get_comment (struct oval_test *test)
 Returns attribute Oval_test->comment.
char * oval_test_get_id (struct oval_test *test)
 Returns attribute oval_test->id.
bool oval_test_get_deprecated (struct oval_test *test)
 Returns attribute oval_test->deprecated.
int oval_test_get_version (struct oval_test *test)
 Returns attribute oval_test->version.
oval_existence_t oval_test_get_existence (struct oval_test *test)
 Returns attribute oval_test->existence.
oval_check_t oval_test_get_check (struct oval_test *test)
 Returns attribute oval_test->check.
oval_operator_t oval_test_get_state_operator (struct oval_test *test)
 Returns attribute oval_test->state_operator.
struct oval_objectoval_test_get_object (struct oval_test *test)
 Returns attribute oval_test->object.
struct oval_state_iteratoroval_test_get_states (struct oval_test *test)
 Returns attribute oval_test->states.
char * oval_test_get_state_names (struct oval_test *test)
struct oval_testoval_test_new (struct oval_definition_model *model, const char *id)
 Construct new instance of oval_test.
struct oval_testoval_test_clone (struct oval_definition_model *new_model, struct oval_test *old_test)
 Clone instance of oval_test and add it to the specified oval_definition_model.
void oval_test_free (struct oval_test *test)
 Destruct instance of oval_test.
void oval_test_set_deprecated (struct oval_test *test, bool deprecated)
 Sets attribute oval_test->deprecated.
void oval_test_set_version (struct oval_test *test, int version)
 Sets attribute oval_test->version.
void oval_test_set_subtype (struct oval_test *test, oval_subtype_t subtype)
 Sets attributes oval_test->subtype and Oval_test->family.
void oval_test_set_comment (struct oval_test *test, char *comm)
 Sets a copy of the comment parameter to attribute oval_test->comment.
void oval_test_set_existence (struct oval_test *test, oval_existence_t existence)
 Sets attribute oval_test->existence.
void oval_test_set_state_operator (struct oval_test *test, oval_operator_t state_operator)
 Sets attribute oval_test->state_operator.
void oval_test_set_check (struct oval_test *test, oval_check_t check)
 Sets attribute oval_test->check.
void oval_test_set_object (struct oval_test *test, struct oval_object *object)
 Sets attribute oval_test->object.
void oval_test_add_state (struct oval_test *test, struct oval_state *state)
 Add the specified state to the state list of the specified test.
void oval_test_add_note (struct oval_test *test, char *note)
 Appends a copy of the note parameter to attribute oval_test->notes.
int oval_test_parse_tag (xmlTextReaderPtr reader, struct oval_parser_context *context, void *usr)
xmlNode * oval_test_to_dom (struct oval_test *test, xmlDoc *doc, xmlNode *parent)


Detailed Description

Open Vulnerability and Assessment Language.

See more details at http://oval.mitre.org/


Generated on Tue Nov 14 12:18:55 2017 for Open SCAP Library by  doxygen 1.5.6