Module: Net::SSH::Authentication::Pageant

Defined in:
lib/net/ssh/authentication/pageant.rb

Overview

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 ([email protected]). It is used and relicensed by permission.

Defined Under Namespace

Modules: Win Classes: Socket, Socket19

Constant Summary collapse

AGENT_MAX_MSGLEN =

From Putty pageant.c

8192
AGENT_COPYDATA_ID =
0x804e50ba

Class Method Summary collapse

Class Method Details

.socket_factoryObject

Selects which socket to use depending on the ruby version This is needed due changes in the DL module.



250
251
252
253
254
255
256
# File 'lib/net/ssh/authentication/pageant.rb', line 250

def self.socket_factory
  if RUBY_VERSION < "1.9"
    Socket
  else
    Socket19
  end
end