module PuTTY::Key::OpenSSL
Constants
Public Class Methods
global_install()
click to toggle source
Makes the refinements to OpenSSL
available in PuTTY::Key
available globally. After calling {global_install}, it is no longer necessary to include using PuTTY::Key
when using the to_ppk
and from_ppk
methods added to OpenSSL::PKey
.
# File lib/putty/key/openssl.rb, line 403 def self.global_install PKEY_CLASSES.each do |name, openssl_class| mod = const_get(name) openssl_class.class_eval do include mod end end ::OpenSSL::PKey.module_eval do extend ClassMethods end end