diff --git a/bindings/bindings.py b/bindings/bindings.py index def735e7..0caf114a 100644 --- a/bindings/bindings.py +++ b/bindings/bindings.py @@ -483,6 +483,9 @@ def parse_header(header_file): pass else: # TODO: Add parsing of OFTYPE + # Transform struct to typedef + # example: "struct _LassoAssertion" -> "LassoAssertion" + line = re.sub('\s+struct _', ' ', line) member_match = re.match('\s+(\w+)\s+(\*?\w+)', line) if member_match: member_type, member_name = normalise_var(member_match.group(1), member_match.group(2)) diff --git a/lasso/xml/saml_advice.h b/lasso/xml/saml_advice.h index 82b0ecc2..8216e9de 100644 --- a/lasso/xml/saml_advice.h +++ b/lasso/xml/saml_advice.h @@ -52,8 +52,7 @@ struct _LassoSamlAdvice { /* */ GList *AssertionIDReference; /* of LassoNode */ /* */ - LassoNode *Assertion; /* actually LassoSamlAssertion* but it recurses */ - + struct _LassoSamlAssertion *Assertion; }; struct _LassoSamlAdviceClass {