diff options
Diffstat (limited to 'csharp/examples')
| -rw-r--r-- | csharp/examples/runme.cs | 27 |
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(); + } +} |
