summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-08-21 17:49:11 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-08-21 17:49:11 +0000
commitc608d25197fc6a84dc79fbdceb4da68bd192b73d (patch)
tree39d4b994241fdf5f0a4ae04a3b1a274840f7fae2
parentca761ff5c3754aedac41ba75c73d356d17b19733 (diff)
downloadlasso-c608d25197fc6a84dc79fbdceb4da68bd192b73d.tar.gz
lasso-c608d25197fc6a84dc79fbdceb4da68bd192b73d.tar.xz
lasso-c608d25197fc6a84dc79fbdceb4da68bd192b73d.zip
C# example
-rw-r--r--csharp/examples/runme.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/csharp/examples/runme.cs b/csharp/examples/runme.cs
new file mode 100644
index 00000000..fc1b23b2
--- /dev/null
+++ b/csharp/examples/runme.cs
@@ -0,0 +1,27 @@
+/*
+ * install lasso then compile with
+ * mcs -g -nologo -pkg:lasso-sharp -out:runme.exe runme.cs
+ */
+
+using System;
+
+public class runme
+{
+ static void Main()
+ {
+ Console.WriteLine("lasso_init");
+ lasso.lasso_init();
+
+ Console.WriteLine("new LassoServer");
+ LassoServer server = new LassoServer(
+ "../tests/data/idp1-la/metadata.xml",
+ "",
+ "../tests/data/idp1-la/private-key-raw.pem",
+ "../tests/data/idp1-la/certificate.pem",
+ lasso.lassoSignatureMethodRsaSha1);
+
+
+ Console.WriteLine("lasso_shutdown");
+ lasso.lasso_shutdown();
+ }
+}