Sha256: 285b91cce555f02292704a4b3b765dc9d17505d69c8acf849cb4ba60cc6e40c4

Contents?: true

Size: 718 Bytes

Versions: 32

Compression:

Stored size: 718 Bytes

Contents

unless defined? JRUBY_VERSION
  warn 'Loading jruby-openssl in a non-JRuby interpreter'
end

# Load bouncy-castle gem if available
begin
  require 'bouncy-castle-java'
rescue LoadError
  # runs under restricted mode or uses builtin BC
end

# Load extension
require 'jruby'
require 'jopenssl.jar'
org.jruby.ext.openssl.OSSLLibrary.new.load(JRuby.runtime, false)

# Add version-appropriate library path to LOAD_PATH
if RUBY_VERSION >= '1.9.0'
  $LOAD_PATH.unshift(File.expand_path('../../1.9', __FILE__))
  load(File.expand_path('../../1.9/openssl.rb', __FILE__))
else
  $LOAD_PATH.unshift(File.expand_path('../../1.8', __FILE__))
  load(File.expand_path('../../1.8/openssl.rb', __FILE__))
end

require 'openssl/pkcs12'

Version data entries

32 entries across 16 versions & 1 rubygems

Version Path
jruby-openssl-0.8.2 lib/shared/openssl.rb
jruby-openssl-0.8.2 lib/shared/jruby-openssl.rb
jruby-openssl-0.8.1 lib/shared/openssl.rb
jruby-openssl-0.8.1 lib/shared/jruby-openssl.rb
jruby-openssl-0.8.0 lib/shared/jruby-openssl.rb
jruby-openssl-0.8.0 lib/shared/openssl.rb
jruby-openssl-0.8.0.pre3 lib/shared/jruby-openssl.rb
jruby-openssl-0.8.0.pre3 lib/shared/openssl.rb
jruby-openssl-0.8.0.pre2 lib/shared/jruby-openssl.rb
jruby-openssl-0.8.0.pre2 lib/shared/openssl.rb
jruby-openssl-0.8.0.pre1 lib/shared/jruby-openssl.rb
jruby-openssl-0.8.0.pre1 lib/shared/openssl.rb