summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-11-28 10:47:31 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-11-28 10:47:31 +0000
commit166cff941716b236a7d2602562d7c2ecadd8e908 (patch)
treeccca6a7b37e7f61700feb4305034be418566d20e /swig
parente51ab22b76a139f4e2a573ca69f4ae7f1e5ebfc4 (diff)
downloadlasso-166cff941716b236a7d2602562d7c2ecadd8e908.tar.gz
lasso-166cff941716b236a7d2602562d7c2ecadd8e908.tar.xz
lasso-166cff941716b236a7d2602562d7c2ecadd8e908.zip
extra checks to pass negative testing steps
Diffstat (limited to 'swig')
-rw-r--r--swig/Lasso.i1
-rw-r--r--swig/saml-2.0/saml2_audience_restriction.i3
-rw-r--r--swig/saml-2.0/saml2_conditions.i32
-rw-r--r--swig/saml-2.0/saml2_subject_confirmation.i3
-rw-r--r--swig/saml-2.0/saml2_subject_confirmation_data.i15
-rw-r--r--swig/saml-2.0/samlp2_response.i14
6 files changed, 68 insertions, 0 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i
index 7882b47f..a9bd17f4 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -1115,6 +1115,7 @@ typedef enum {
%rename(LOGIN_ERROR_STATUS_NOT_SUCCESS) LASSO_LOGIN_ERROR_STATUS_NOT_SUCCESS;
%rename(LOGIN_ERROR_UNKNOWN_PRINCIPAL) LASSO_LOGIN_ERROR_UNKNOWN_PRINCIPAL;
%rename(LOGIN_ERROR_NO_DEFAULT_ENDPOINT) LASSO_LOGIN_ERROR_NO_DEFAULT_ENDPOINT;
+%rename(LOGIN_ERROR_ASSERTION_REPLAY) LASSO_LOGIN_ERROR_ASSERTION_REPLAY;
#endif
/* Federation Termination Notification */
diff --git a/swig/saml-2.0/saml2_audience_restriction.i b/swig/saml-2.0/saml2_audience_restriction.i
index 5b635ce8..8290db4b 100644
--- a/swig/saml-2.0/saml2_audience_restriction.i
+++ b/swig/saml-2.0/saml2_audience_restriction.i
@@ -3,6 +3,9 @@
%rename(Saml2AudienceRestriction) LassoSaml2AudienceRestriction;
#endif
typedef struct {
+#ifndef SWIGPHP4
+ %rename(audience) Audience;
+#endif
char *Audience;
} LassoSaml2AudienceRestriction;
%extend LassoSaml2AudienceRestriction {
diff --git a/swig/saml-2.0/saml2_conditions.i b/swig/saml-2.0/saml2_conditions.i
index 30cc9daf..05b60f99 100644
--- a/swig/saml-2.0/saml2_conditions.i
+++ b/swig/saml-2.0/saml2_conditions.i
@@ -3,11 +3,27 @@
%rename(Saml2Conditions) LassoSaml2Conditions;
#endif
typedef struct {
+#ifndef SWIG_PHP4
+ %rename(notBefore) NotBefore;
+#endif
char *NotBefore;
+#ifndef SWIG_PHP4
+ %rename(notOnOrAfter) NotOnOrAfter;
+#endif
char *NotOnOrAfter;
} LassoSaml2Conditions;
%extend LassoSaml2Conditions {
+#ifndef SWIGPHP4
+ %rename(condition) Condition;
+#endif
+ %newobject Condition_get;
+ LassoNodeList *Condition;
+#ifndef SWIGPHP4
+ %rename(audienceRestriction) AudienceRestriction;
+#endif
+ %newobject AudienceRestriction_get;
+ LassoNodeList *AudienceRestriction;
/* Constructor, Destructor & Static Methods */
LassoSaml2Conditions();
@@ -20,6 +36,22 @@ typedef struct {
%{
+/* Condition */
+
+#define LassoSaml2Conditions_get_Condition(self) get_node_list((self)->Condition)
+#define LassoSaml2Conditions_Condition_get(self) get_node_list((self)->Condition)
+#define LassoSaml2Conditions_set_Condition(self, value) set_node_list(&(self)->Condition, (value))
+#define LassoSaml2Conditions_Condition_set(self, value) set_node_list(&(self)->Condition, (value))
+
+/* AudienceRestriction */
+
+#define LassoSaml2Conditions_get_AudienceRestriction(self) get_node_list((self)->AudienceRestriction)
+#define LassoSaml2Conditions_AudienceRestriction_get(self) get_node_list((self)->AudienceRestriction)
+#define LassoSaml2Conditions_set_AudienceRestriction(self, value) set_node_list(&(self)->AudienceRestriction, (value))
+#define LassoSaml2Conditions_AudienceRestriction_set(self, value) set_node_list(&(self)->AudienceRestriction, (value))
+
+
+
/* Constructors, destructors & static methods implementations */
diff --git a/swig/saml-2.0/saml2_subject_confirmation.i b/swig/saml-2.0/saml2_subject_confirmation.i
index 55a6ea4c..42454972 100644
--- a/swig/saml-2.0/saml2_subject_confirmation.i
+++ b/swig/saml-2.0/saml2_subject_confirmation.i
@@ -3,6 +3,9 @@
%rename(Saml2SubjectConfirmation) LassoSaml2SubjectConfirmation;
#endif
typedef struct {
+#ifndef SWIGPHP4
+ %rename(method) Method;
+#endif
char *Method;
} LassoSaml2SubjectConfirmation;
%extend LassoSaml2SubjectConfirmation {
diff --git a/swig/saml-2.0/saml2_subject_confirmation_data.i b/swig/saml-2.0/saml2_subject_confirmation_data.i
index db587cd5..359d1690 100644
--- a/swig/saml-2.0/saml2_subject_confirmation_data.i
+++ b/swig/saml-2.0/saml2_subject_confirmation_data.i
@@ -3,10 +3,25 @@
%rename(Saml2SubjectConfirmationData) LassoSaml2SubjectConfirmationData;
#endif
typedef struct {
+#ifndef SWIG_PHP4
+ %rename(notBefore) NotBefore;
+#endif
char *NotBefore;
+#ifndef SWIG_PHP4
+ %rename(notOnOrAfter) NotOnOrAfter;
+#endif
char *NotOnOrAfter;
+#ifndef SWIG_PHP4
+ %rename(recipient) Recipient;
+#endif
char *Recipient;
+#ifndef SWIG_PHP4
+ %rename(inResponseTo) InResponseTo;
+#endif
char *InResponseTo;
+#ifndef SWIG_PHP4
+ %rename(address) Address;
+#endif
char *Address;
} LassoSaml2SubjectConfirmationData;
%extend LassoSaml2SubjectConfirmationData {
diff --git a/swig/saml-2.0/samlp2_response.i b/swig/saml-2.0/samlp2_response.i
index d7a9524f..a1fe78f1 100644
--- a/swig/saml-2.0/samlp2_response.i
+++ b/swig/saml-2.0/samlp2_response.i
@@ -50,6 +50,12 @@ typedef struct {
#endif
char *Consent;
+#ifndef SWIGPHP4
+ %rename(assertion) Assertion;
+#endif
+ %newobject Assertion_get;
+ LassoNodeList *Assertion;
+
/* Constructor, Destructor & Static Methods */
LassoSamlp2Response();
~LassoSamlp2Response();
@@ -136,6 +142,14 @@ typedef struct {
#define LassoSamlp2Response_Consent_set(self,value) set_string(&LASSO_SAMLP2_STATUS_RESPONSE(self)->Consent, (value))
+/* Assertion */
+
+#define LassoSamlp2Response_get_Assertion(self) get_node_list((self)->Assertion)
+#define LassoSamlp2Response_Assertion_get(self) get_node_list((self)->Assertion)
+#define LassoSamlp2Response_set_Assertion(self, value) set_node_list(&(self)->Assertion, (value))
+#define LassoSamlp2Response_Assertion_set(self, value) set_node_list(&(self)->Assertion, (value))
+
+
/* Constructors, destructors & static methods implementations */
#define new_LassoSamlp2Response lasso_samlp2_response_new