summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mixlib/authentication/signedheaderauth.rb3
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