Skip to content

Commit

Permalink
Moved debug logging to handleRevokedKey
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljohansson99 committed Jan 14, 2025
1 parent 4779bd8 commit 3d2b31a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@ protected boolean acceptKnownHostEntries(

if (keyMatches.stream()
.anyMatch(k -> "revoked".equals(k.getHostEntry().getMarker()))) {
log.debug("acceptKnownHostEntry({})[{}] key={}-{} marked as revoked",
clientSession, remoteAddress, KeyUtils.getKeyType(serverKey), KeyUtils.getFingerPrint(serverKey));
handleRevokedKey(clientSession, remoteAddress, serverKey);
return false;
}
Expand Down Expand Up @@ -545,6 +543,8 @@ protected List<HostEntryPair> findKnownHostEntries(
* @param serverKey The presented server {@link PublicKey}
*/
protected void handleRevokedKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey) {
log.debug("acceptKnownHostEntry({})[{}] key={}-{} marked as revoked",
clientSession, remoteAddress, KeyUtils.getKeyType(serverKey), KeyUtils.getFingerPrint(serverKey));
}

/**
Expand Down

0 comments on commit 3d2b31a

Please # to comment.