This module encapsulates the implementation of a socket factory that uses the PuTTY “pageant” utility to obtain information about SSH identities.
This code is a slightly modified version of the original implementation by Guillaume Marçais (guillaume.marcais@free.fr). It is used and relicensed by permission.
From Putty pageant.c
Selects which socket to use depending on the ruby version This is needed due changes in the DL module.
# File lib/net/ssh/authentication/pageant.rb, line 250 def self.socket_factory if RUBY_VERSION < "1.9" Socket else Socket19 end end