app/models/metasploit/credential/ssh_key.rb in metasploit-credential-5.0.1 vs app/models/metasploit/credential/ssh_key.rb in metasploit-credential-5.0.2
- old
+ new
@@ -108,10 +108,10 @@
def readable
if data
begin
openssl_pkey_pkey
rescue ArgumentError, OpenSSL::PKey::PKeyError => error
- errors[:data] << "#{error.class} #{error}"
+ errors.add(:data, "#{error.class} #{error}")
end
end
end
# Validates that the private key is not encrypted as unencrypting the private key with its password is not supported: