summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-11-09 11:01:28 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-11-09 11:01:28 +0000
commit88e442ca1ee161a27ddc2dea54d9c1ba9ddd1b00 (patch)
tree616750082f3035995a0cb04f368cdd522c99162f
parent3e4c60b767a86b0c1c6401586e44eab72c3d1a76 (diff)
downloadlasso-88e442ca1ee161a27ddc2dea54d9c1ba9ddd1b00.tar.gz
lasso-88e442ca1ee161a27ddc2dea54d9c1ba9ddd1b00.tar.xz
lasso-88e442ca1ee161a27ddc2dea54d9c1ba9ddd1b00.zip
Change from string to list in requestedAuthnContext.
-rw-r--r--swig/saml-2.0/samlp2_requested_authn_context.i21
1 files changed, 19 insertions, 2 deletions
diff --git a/swig/saml-2.0/samlp2_requested_authn_context.i b/swig/saml-2.0/samlp2_requested_authn_context.i
index 6fc3d75d..0887e674 100644
--- a/swig/saml-2.0/samlp2_requested_authn_context.i
+++ b/swig/saml-2.0/samlp2_requested_authn_context.i
@@ -3,12 +3,17 @@
%rename(Samlp2RequestedAuthnContext) LassoSamlp2RequestedAuthnContext;
#endif
typedef struct {
- char *AuthnContextClassRef;
- char *AuthnContextDeclRef;
+#ifndef SWIGPHP4
+ %rename(comparison) Comparison;
+#endif
char *Comparison;
} LassoSamlp2RequestedAuthnContext;
%extend LassoSamlp2RequestedAuthnContext {
+ %newobject authnContextClassRef_get;
+ LassoStringList *authnContextClassRef;
+ %newobject authnContextDeclRef_get;
+ LassoStringList *authnContextDeclRef;
/* Constructor, Destructor & Static Methods */
LassoSamlp2RequestedAuthnContext();
@@ -21,6 +26,18 @@ typedef struct {
%{
+/* authnContextClassRef */
+#define LassoSamlp2RequestedAuthnContext_get_authnContextClassRef(self) get_string_list((self)->AuthnContextClassRef)
+#define LassoSamlp2RequestedAuthnContext_authnContextClassRef_get(self) get_string_list((self)->AuthnContextClassRef)
+#define LassoSamlp2RequestedAuthnContext_set_authnContextClassRef(self, value) set_string_list(&(self)->AuthnContextClassRef, (value))
+#define LassoSamlp2RequestedAuthnContext_authnContextClassRef_set(self, value) set_string_list(&(self)->AuthnContextClassRef, (value))
+
+/* authnContextDeclRef */
+#define LassoSamlp2RequestedAuthnContext_get_authnContextDeclRef(self) get_string_list((self)->AuthnContextDeclRef)
+#define LassoSamlp2RequestedAuthnContext_authnContextDeclRef_get(self) get_string_list((self)->AuthnContextDeclRef)
+#define LassoSamlp2RequestedAuthnContext_set_authnContextDeclRef(self, value) set_string_list(&(self)->AuthnContextDeclRef, (value))
+#define LassoSamlp2RequestedAuthnContext_authnContextDeclRef_set(self, value) set_string_list(&(self)->AuthnContextDeclRef, (value))
+
/* Constructors, destructors & static methods implementations */