summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorDamien Laniel <dlaniel@entrouvert.com>2006-11-22 12:45:56 +0000
committerDamien Laniel <dlaniel@entrouvert.com>2006-11-22 12:45:56 +0000
commit08eb2fab562950252eb896d69619f255518fa94c (patch)
tree1ec13bf722084a7bde865b55b7b255f9036711f9 /swig
parent5f2583da6de52493002eb0984b13912b8b3ca374 (diff)
downloadlasso-08eb2fab562950252eb896d69619f255518fa94c.tar.gz
lasso-08eb2fab562950252eb896d69619f255518fa94c.tar.xz
lasso-08eb2fab562950252eb896d69619f255518fa94c.zip
Binding for setEncryptionMode
Diffstat (limited to 'swig')
-rw-r--r--swig/Lasso.i18
1 files changed, 15 insertions, 3 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i
index 5ecd1304..7882b47f 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -1002,6 +1002,18 @@ typedef enum {
LASSO_SIGNATURE_METHOD_DSA_SHA1
} LassoSignatureMethod;
+/* Encryption mode */
+#ifndef SWIGPHP4
+%rename(ENCRYPTION_MODE_NONE) LASSO_ENCRYPTION_MODE_NONE;
+%rename(ENCRYPTION_MODE_NAMEID) LASSO_ENCRYPTION_MODE_NAMEID;
+%rename(ENCRYPTION_MODE_ASSERTION) LASSO_ENCRYPTION_MODE_ASSERTION;
+%rename(EncryptionMode) LassoEncryptionMode;
+#endif
+typedef enum {
+ LASSO_ENCRYPTION_MODE_NONE,
+ LASSO_ENCRYPTION_MODE_NAMEID,
+ LASSO_ENCRYPTION_MODE_ASSERTION
+} LassoEncryptionMode;
/***********************************************************************
* Errors
@@ -4989,8 +5001,8 @@ typedef struct {
LassoProtocolConformance getProtocolConformance();
- %newobject setEncryption;
- void setEncryption(gboolean encryption_activation);
+ %newobject setEncryptionMode;
+ void setEncryptionMode(LassoEncryptionMode encryption_mode);
}
%{
@@ -5015,7 +5027,7 @@ typedef struct {
#define LassoProvider_getProtocolConformance lasso_provider_get_protocol_conformance
#define LassoProvider_hasProtocolProfile lasso_provider_has_protocol_profile
#define LassoProvider_getOrganization(self) get_xml_string(lasso_provider_get_organization(self))
-#define LassoProvider_setEncryption lasso_provider_set_encryption
+#define LassoProvider_setEncryptionMode lasso_provider_set_encryption_mode
%}