diff --git a/src/com/subgraph/orchid/connections/ConnectionHandshakeV3.java b/src/com/subgraph/orchid/connections/ConnectionHandshakeV3.java index ca2ff75b..33a1e319 100644 --- a/src/com/subgraph/orchid/connections/ConnectionHandshakeV3.java +++ b/src/com/subgraph/orchid/connections/ConnectionHandshakeV3.java @@ -40,9 +40,6 @@ void runHandshake() throws IOException, InterruptedException, ConnectionIOExcept 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; @@ -53,8 +50,6 @@ void recvCerts() throws ConnectionHandshakeException { linkCertificate = testAndReadCertificate(cell, linkCertificate, "Link (type = 1)"); } else if(type == 2) { identityCertificate = testAndReadCertificate(cell, identityCertificate, "Identity (type = 2)"); - } else { - throw new ConnectionHandshakeException("Unexpected certificate type = "+ type + " in CERTS cell"); } }