diff options
author | Matt Whiteley <mwhiteley@fastly.com> | 2017-09-06 13:05:10 -0700 |
---|---|---|
committer | Matt Whiteley <mwhiteley@fastly.com> | 2017-09-06 13:05:58 -0700 |
commit | e95c0c905ec0c3d6721d0909947117318fc7d01b (patch) | |
tree | 42aa607a096edc311825fdd0dc3ec454a5cb5518 /lib | |
parent | 5711bdff067711b03d5fa385b558e7782275364b (diff) | |
download | mixlib-authentication-e95c0c905ec0c3d6721d0909947117318fc7d01b.tar.gz |
fix comment about ssh agent response
Signed-off-by: Matt Whiteley <mwhiteley@fastly.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/authentication/signedheaderauth.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index 8ca2230..8a49ca9 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -279,7 +279,8 @@ module Mixlib rescue => e raise AuthenticationError, "Unable to sign request with ssh-agent. Make sure your key is loaded with ssh-add! (#{e.class.name}: #{e.message})" end - # extract signature from SSH Agent response => skip first 15 bytes for RSA keys + # extract signature from SSH Agent response => skip first 20 bytes for RSA keys + # "\x00\x00\x00\frsa-sha2-256\x00\x00\x01\x00" # (see http://api.libssh.org/rfc/PROTOCOL.agent for details) ssh2_signature[20..-1] end |