# File lib/net/ssh/authentication/agent.rb, line 97
 97:     def identities
 98:       type, body = send_and_wait(SSH2_AGENT_REQUEST_IDENTITIES)
 99:       raise AgentError, "could not get identity count" if agent_failed(type)
100:       raise AgentError, "bad authentication reply: #{type}" if type != SSH2_AGENT_IDENTITIES_ANSWER
101: 
102:       identities = []
103:       body.read_long.times do
104:         key = Buffer.new(body.read_string).read_key
105:         key.extend(Comment)
106:         key.comment = body.read_string
107:         identities.push key
108:       end
109: 
110:       return identities
111:     end