00001 #pragma once 00002 #ifndef OVAL_PROBE_H 00003 #define OVAL_PROBE_H 00004 00005 #include <seap-types.h> 00006 #include <config.h> 00007 00008 #include "oval_definitions_impl.h" 00009 #include "oval_agent_api_impl.h" 00010 #include "oval_parser_impl.h" 00011 #include "oval_string_map_impl.h" 00012 #include "public/oval_system_characteristics.h" 00013 #include "../common/util.h" 00014 00015 OSCAP_HIDDEN_START; 00016 00017 #define OVAL_PROBE_SCHEME "pipe" 00018 #ifndef OVAL_PROBE_DIR 00019 # define OVAL_PROBE_DIR "/usr/libexec/openscap" 00020 #endif 00021 00022 typedef struct { 00023 oval_subtype_t typenum; 00024 char *typestr; 00025 char *filename; 00026 } oval_probe_t; 00027 00028 typedef struct { 00029 oval_subtype_t typenum; 00030 int sd; 00031 char *uri; 00032 } ovalp_sd_t; 00033 00034 typedef struct { 00035 ovalp_sd_t *memb; 00036 size_t count; 00037 SEAP_CTX_t *ctx; 00038 uint8_t flags; 00039 } ovalp_sdtbl_t; 00040 00041 #define OVALP_SDTBL_CMDDONE 0x01 00042 #define OVALP_SDTBL_INITIALIZER { NULL, 0, NULL, 0 } 00043 00044 #define OVAL_PROBE_MAXRETRY 3 00045 00046 const oval_probe_t *ovalp_lookup (oval_subtype_t typenum); 00047 oval_subtype_t ovalp_lookup_type (const char *name); 00048 00049 OSCAP_HIDDEN_END; 00050 00051 #endif /* OVAL_PROBE_H */