Module: OpenSSL

Defined in:
lib/jopenssl22/openssl/bn.rb,
lib/openssl/pkcs12.rb,
lib/jopenssl22/openssl/ssl.rb,
lib/jopenssl21/openssl/x509.rb,
lib/jopenssl22/openssl/x509.rb,
lib/jopenssl18/openssl/pkcs7.rb,
lib/jopenssl18/openssl/cipher.rb,
lib/jopenssl18/openssl/config.rb,
lib/jopenssl18/openssl/digest.rb,
lib/jopenssl19/openssl/cipher.rb,
lib/jopenssl19/openssl/config.rb,
lib/jopenssl19/openssl/digest.rb,
lib/jopenssl22/openssl/cipher.rb,
lib/jopenssl22/openssl/config.rb,
lib/jopenssl22/openssl/digest.rb,
lib/jopenssl18/openssl/buffering.rb,
lib/jopenssl18/openssl/ssl-internal.rb,
lib/jopenssl19/openssl/ssl-internal.rb,
lib/jopenssl18/openssl/x509-internal.rb,
lib/jopenssl19/openssl/x509-internal.rb

Overview

$RCSfile$ – Ruby-space definitions that completes C-space funcs for X509 and subclasses

Info

'OpenSSL for Ruby 2' project
Copyright (C) 2002  Michal Rokos <[email protected]>
All rights reserved.

Licence

This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)

Version

$Id$

Defined Under Namespace

Modules: Buffering, SSL, X509 Classes: BN, Cipher, Config, Digest, PKCS12, PKCS7

Class Method Summary collapse

Class Method Details

.Digest(name) ⇒ Object

Returns a Digest subclass by name.

require 'openssl'

OpenSSL::Digest("MD5")
# => OpenSSL::Digest::MD5

Digest("Foo")
# => NameError: wrong constant name Foo

48
49
50
# File 'lib/jopenssl22/openssl/digest.rb', line 48

def Digest(name)
  OpenSSL::Digest.const_get(name)
end