verifyCertificates();
sendNetinfo();
}
void recvCerts() throws ConnectionHandshakeException {
final Cell cell = expectCell(Cell.CERTS);
final int ncerts = cell.getByte();
if(ncerts != 2) {
throw new ConnectionHandshakeException("Expecting 2 certificates and got "+ ncerts);
}
linkCertificate = null;
identityCertificate = null;
for(int i = 0; i < ncerts; i++) {
int type = cell.getByte();
if(type == 1) {
linkCertificate = testAndReadCertificate(cell, linkCertificate, "Link (type = 1)");
} else if(type == 2) {
identityCertificate = testAndReadCertificate(cell, identityCertificate, "Identity (type = 2)");
} else {