Skip to content

Commit

Permalink
TODO test matches_validity?
Browse files Browse the repository at this point in the history
  • Loading branch information
jage committed Mar 15, 2024
1 parent a2353dd commit 3ba4c06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/net/ssh/known_hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def matches_principal?(server_key, hostname)
server_key.valid_principals.empty? || server_key.valid_principals.include?(hostname)
end

# TODO: this should be unit tested
def matches_validity?(server_key)
# If valid_after is in the future, fail
if server_key.valid_after && server_key.valid_after > Time.now
Expand Down

0 comments on commit 3ba4c06

Please sign in to comment.