[Open-scap] Functions missing in Python Bindings

Maros Barabas mbarabas at redhat.com
Wed Jun 30 07:23:55 UTC 2010


Hi Josh,

    yes, I found this issue yesterday while I was working on some python 
wrapper functions. I've fixed this by adding "#define ENABLE_XCCDF" and moving 
all "#ifdef WANT_XCCDF" before OVAL import section in openscap.i. Try to use 
the last git version.

One more hint: There are new functions (wrappers) in python you should use: 
oval_agent_eval_rule_py - predefined callback function from oval_agent.c
xccdf_policy_model_register_output_callback_py - register output callback 
before evaluate XCCDF document.
oval_agent_cb_data_set_callback_py - Set callback to CB-Data structure

This week I plan to start working on Python API so there will be no *_py 
wrappers in API finally.

Maros

On Tuesday, June 29, 2010 04:35:05 am Joshua Adams wrote:
> There seems to be an issue with the Python bindings with some of the newer
> functions that were added to oval_agent.c.  Specifically, it seems that
> all the functions defined within the #ifdef ENABLE_XCCDF sections, such as
> oval_agent_resolve_variables and oval_agent_cb_data_*, are missing in the
> python bidnings.  My first thought was that swig was simply ignoring these
> functions because of the ifdef's, but even after removing them, the
> functions would still be missing in the python bindings.
> 
> Any help would be appreciated,
> 
> Josh Adams
> 
> _______________________________________________
> Open-scap-list mailing list
> Open-scap-list at redhat.com
> https://www.redhat.com/mailman/listinfo/open-scap-list




More information about the Open-scap-list mailing list