Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
}
}

Expand Down