Sha256: f0aaa9bdf05b1d3c9f6136491409d8b7a063a3011b87715b0ed094fce26a4f3c
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
=begin = $RCSfile$ -- Loader for all OpenSSL C-space and Ruby-space definitions = Info 'OpenSSL for Ruby 2' project Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz> All rights reserved. = Licence This program is licenced under the same licence as Ruby. (See the file 'LICENCE'.) = Version $Id: openssl.rb 12496 2007-06-08 15:02:04Z technorama $ =end # TODO: remove this chunk after 1.4 support is dropped require 'digest' unless defined?(::Digest::Class) # restricted support for jruby <= 1.4 (1.8.6 Digest compat) module Digest class Class def self.hexdigest(name, data) digest(name, data).unpack('H*')[0] end def self.digest(data, name) digester = const_get(name).new digester.update(data) digester.finish end def hexdigest digest.unpack('H*')[0] end def digest dup.finish end def ==(oth) digest == oth.digest end def to_s hexdigest end def size digest_length end def length digest_length end end end end # end of compat chunk. begin require 'bouncy-castle-java' rescue LoadError # runs under restricted mode. end require 'jopenssl' require 'openssl/bn' require 'openssl/cipher' require 'openssl/digest' require 'openssl/pkcs7' require 'openssl/ssl' require 'openssl/x509'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jruby-openssl-0.7.1 | lib/openssl.rb |