From c608d25197fc6a84dc79fbdceb4da68bd192b73d Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Sat, 21 Aug 2004 17:49:11 +0000 Subject: C# example --- csharp/examples/runme.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 csharp/examples/runme.cs (limited to 'csharp/examples') 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(); + } +} -- cgit