00001 00009 /* 00010 * Copyright 2009--2013 Red Hat Inc., Durham, North Carolina. 00011 * All Rights Reserved. 00012 * 00013 * This library is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU Lesser General Public 00015 * License as published by the Free Software Foundation; either 00016 * version 2.1 of the License, or (at your option) any later version. 00017 * 00018 * This library is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 * Lesser General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public 00024 * License along with this library; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00026 * 00027 * Authors: 00028 * "Daniel Kopecek" <dkopecek@redhat.com> 00029 */ 00030 00031 #pragma once 00032 #ifndef OVAL_PROBE_IMPL_H 00033 #define OVAL_PROBE_IMPL_H 00034 00035 #include <seap-types.h> 00036 #include "oval_definitions_impl.h" 00037 #include "oval_agent_api_impl.h" 00038 #include "oval_parser_impl.h" 00039 #include "public/oval_system_characteristics.h" 00040 #include "../common/util.h" 00041 #include "public/oval_probe.h" 00042 #include "probes/_probe-api.h" 00043 00044 #include "public/oval_probe_session.h" 00045 #include "public/oval_probe_handler.h" 00046 #include "public/oval_probe.h" 00047 00048 OSCAP_HIDDEN_START; 00049 00050 #define OVAL_PROBE_SCHEME "pipe" 00051 00052 #ifndef OVAL_PROBE_DIR 00053 # define OVAL_PROBE_DIR "/usr/libexec/openscap" 00054 #endif 00055 00056 #define OVAL_PROBE_MAXRETRY 0 00057 00058 OSCAP_HIDDEN_END; 00059 00060 extern probe_ncache_t *OSCAP_GSYM(ncache); 00061 00062 typedef struct { 00063 oval_subtype_t type; 00064 const char *name; 00065 } oval_subtypedsc_t; 00066 00067 void oval_probe_tblinit(void); 00068 const char *oval_subtype_to_str(oval_subtype_t subtype); 00069 oval_subtype_t oval_str_to_subtype(const char *str); 00070 00071 int oval_probe_hint_definition(oval_probe_session_t *sess, struct oval_definition *definition, int variable_instance_hint); 00072 00073 #endif /* OVAL_PROBE_IMPL_H */