summaryrefslogtreecommitdiffstats
path: root/csharp/examples/runme.cs
blob: fc1b23b2f2d10fc0ddeb7170ab47b650f68a0948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
    }
}