Class: OpenPGP::Engine::OpenSSL

Inherits:
  • Object
show all
Defined in:
lib/openpgp/engine/openssl.rb

Class Method Summary (collapse)

Methods inherited from

available?, install_extensions!, use

Class Method Details

+ install!

This method returns an undefined value.

Raises:

  • (LoadError)


15
16
17
18
# File 'lib/openpgp/engine/openssl.rb', line 15

def self.install!
  load!
  [Random, Digest].each { |mod| install_extensions! mod }
end

+ load!(reload = false)

This method returns an undefined value.

Parameters:

  • (Boolean) reload (defaults to: false)

Raises:

  • (LoadError)


8
9
10
# File 'lib/openpgp/engine/openssl.rb', line 8

def self.load!(reload = false)
  require 'openssl' unless defined?(::OpenSSL) || reload
end