module PuTTY::Key::OpenSSL

Constants

OPENSSL_CURVES

Mapping from SSH curve names to their equivalent OpenSSL names.

PKEY_CLASSES

{OpenSSL::PKey} classes to be refined.

SSH_CURVES

Mapping from OpenSSL curve names to their equivalent SSH names.

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 189
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