Ejemplo n.º 1
0
        public void TestNetworkTest()
        {
            string uid     = "*****@*****.**";
            string name    = "Pierre St Juste";
            string pcid    = "pdesktop";
            string version = "SVPN_0.3.0";
            string country = "US";

            SocialUtils.CreateCertificate(uid, name, pcid, version, country,
                                          "address1234", "certificates",
                                          "private_key");


            string cert_path = System.IO.Path.Combine("certificates", "lc.cert");

            byte[]     cert_data = SocialUtils.ReadFileBytes(cert_path);
            SocialUser user      = new SocialUser(cert_data);

            TestNetwork backend = new TestNetwork(user);

            backend.SayHello();
            backend.GetFingerprints("uid");
        }
Ejemplo n.º 2
0
        public void TestNetworkTest()
        {
            string uid = "*****@*****.**";
              string name = "Pierre St Juste";
              string pcid = "pdesktop";
              string version = "SVPN_0.3.0";
              string country = "US";

              SocialUtils.CreateCertificate(uid, name, pcid, version, country,
                                    "address1234", "certificates",
                                    "private_key");

              string cert_path = System.IO.Path.Combine("certificates", "lc.cert");
              byte[] cert_data = SocialUtils.ReadFileBytes(cert_path);
              SocialUser user = new SocialUser(cert_data);

              TestNetwork backend = new TestNetwork(user);
              backend.SayHello();
              backend.GetFingerprints("uid");
        }