diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-09-20 15:52:03 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-09-20 15:52:03 +0000 |
commit | 21c603e245f6a61886a8398f54acbae3ee5ab093 (patch) | |
tree | 96411c6baaa6eb5580bcc16f028ca870fcbc798a /swig | |
parent | 38b810e03419bcff36c1970c550af4e01cbd989b (diff) | |
download | lasso-21c603e245f6a61886a8398f54acbae3ee5ab093.tar.gz lasso-21c603e245f6a61886a8398f54acbae3ee5ab093.tar.xz lasso-21c603e245f6a61886a8398f54acbae3ee5ab093.zip |
Made remote_providerID optional in lasso_lecp_build_authn_request_msg and in
SWIG
Corrected SWIG handling of metadata.
Added attribute providerIds to Session in SWIG.
Diffstat (limited to 'swig')
-rw-r--r-- | swig/Lasso.i | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i index e4cc7b09..e354444e 100644 --- a/swig/Lasso.i +++ b/swig/Lasso.i @@ -898,13 +898,12 @@ typedef struct { #endif %nodefault LassoProvider; typedef struct { + %immutable metadata; + LassoNode *metadata; + %extend { /* Attributes */ - %immutable metadata; - %newobject metadata; - LassoNode *metadata; - %immutable providerId; %newobject providerId_get; gchar *providerId; @@ -915,14 +914,6 @@ typedef struct { /* Attributes implementations */ -/* metadata */ -#define LassoProvider_get_metadata LassoProvider_metadata_get -LassoNode *LassoProvider_metadata_get(LassoProvider *self) { - /* FIXME: The lasso_node_copy is mandatory. Otherwise metadata is not a LassoNode. Is */ - /* it a bug? If we correct this don't forget to remove newobject above. */ - return lasso_node_copy(self->metadata); -} - /* providerId */ #define LassoProvider_get_providerId LassoProvider_providerId_get gchar *LassoProvider_providerId_get(LassoProvider *self) { @@ -1019,7 +1010,6 @@ typedef struct { /* Attributes inherited from LassoProvider */ %immutable metadata; - %newobject metadata; LassoNode *metadata; /* Attributes */ @@ -1060,9 +1050,7 @@ typedef struct { /* metadata */ #define LassoServer_get_metadata LassoServer_metadata_get LassoNode *LassoServer_metadata_get(LassoServer *self) { - /* FIXME: The lasso_node_copy is mandatory. Otherwise metadata is not a LassoNode. Is */ - /* it a bug? If we correct this don't forget to remove newobject above. */ - return lasso_node_copy(LASSO_PROVIDER(self)->metadata); + return LASSO_PROVIDER(self)->metadata; } /* Attributes implementations */ @@ -1180,6 +1168,9 @@ typedef struct { %immutable isDirty; gboolean isDirty; + %immutable providerIds; + LassoProviderIds *providerIds; + /* Constructor, destructor & static methods */ LassoSession(); @@ -1209,6 +1200,12 @@ gboolean LassoSession_isDirty_get(LassoSession *self) { return self->is_dirty; } +/* providerIDs */ +#define LassoSession_get_providerIds LassoSession_providerIds_get +LassoProviderIds *LassoSession_providerIds_get(LassoSession *self) { + return self->providerIDs; +} + /* Constructors, destructors & static methods implementations */ #define new_LassoSession lasso_session_new @@ -1530,7 +1527,7 @@ typedef struct { END_THROW_ERROR THROW_ERROR - void buildAuthnRequestMsg(gchar *remoteProviderId); + void buildAuthnRequestMsg(gchar *remoteProviderId = NULL); END_THROW_ERROR THROW_ERROR @@ -2063,7 +2060,7 @@ typedef struct { END_THROW_ERROR THROW_ERROR - void buildAuthnRequestMsg(gchar *remoteProviderId); + void buildAuthnRequestMsg(gchar *remoteProviderId = NULL); END_THROW_ERROR THROW_ERROR |