Update build process, Go glue builds now.

This commit is contained in:
Adam Ierymenko 2019-09-20 15:00:53 -07:00
parent ed2024285d
commit e0ddbc2f28
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
7 changed files with 70 additions and 153 deletions

View file

@ -620,31 +620,6 @@ static int testIdentity()
}
}
/*
try {
std::cout << "[identity] Testing Locator and DNS TXT encoding... "; std::cout.flush();
uint8_t dnsPub[ZT_ECC384_PUBLIC_KEY_SIZE],dnsPriv[ZT_ECC384_PRIVATE_KEY_SIZE];
ECC384GenerateKey(dnsPub,dnsPriv);
std::unique_ptr<Locator> l(new Locator());
std::unique_ptr<Identity> ti(new Identity());
ti->generate(Identity::C25519);
l->add(InetAddress("127.0.0.1/9993"));
l->add(InetAddress("cafe:babe:face:dbad:deca:f::1/9993"));
l->finish(*ti,OSUtils::now());
l->sign(*ti);
auto tr = l->makeTxtRecords(dnsPub,dnsPriv);
std::unique_ptr<Locator> l2(new Locator());
if (!l2->decodeTxtRecords(tr.begin(),tr.end())) {
std::cout << "FAILED (decode TXT records returned false)" ZT_EOL_S;
return -1;
}
std::cout << "OK" ZT_EOL_S;
} catch (int e) {
std::cout << "FAILED (threw integer exception " << e << ")" ZT_EOL_S;
return -1;
}
*/
return 0;
}