From c521bfad7292745a221ffa838aa557ab04a9f9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=90=D0=B3=D0=B0=D1=80=D0=BA=D0=BE=D0=B2?= Date: Wed, 22 Nov 2017 14:13:53 +0300 Subject: [PATCH] In accordance with recent changes in the specification In accordance with recent changes in the specification https://gitweb.torproject.org/torspec.git/commit/tor-spec.txt?id=85e4033f9c4640998e8edbfc1502e092515934e5 --- .../subgraph/orchid/connections/ConnectionHandshakeV3.java | 5 ----- 1 file changed, 5 deletions(-) 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"); } }