lib/travis/tools/ssl_key.rb in travis-1.8.11.travis.1081.9 vs lib/travis/tools/ssl_key.rb in travis-1.8.11.travis.1098.9

- old
+ new

@@ -16,10 +16,10 @@ public_key = string.gsub('RSA PUBLIC KEY', 'PUBLIC KEY') @to_rsa = OpenSSL::PKey::RSA.new(public_key) end def has_passphrase?(key) - OpenSSL::PKey::RSA.new(key, key) + OpenSSL::PKey::RSA.new(key, key[0..1023]) false rescue OpenSSL::OpenSSLError true end