Sha256: 17faeeac9d5eded864c92389907571e2e780cba2854b031258bcef4714d04f5b
Contents?: true
Size: 933 Bytes
Versions: 2
Compression:
Stored size: 933 Bytes
Contents
warn 'Loading jruby-openssl in a non-JRuby interpreter' unless defined? JRUBY_VERSION require 'java' require 'jopenssl/version' version = Jopenssl::Version::BOUNCY_CASTLE_VERSION bc_jars = nil begin # if we have jar-dependencies we let it track the jars require_jar( 'org.bouncycastle', 'bcpkix-jdk15on', version ) require_jar( 'org.bouncycastle', 'bcprov-jdk15on', version ) bc_jars = true rescue LoadError end if defined?(Jars) && ( ! Jars.skip? ) rescue nil unless bc_jars load "org/bouncycastle/bcpkix-jdk15on/#{version}/bcpkix-jdk15on-#{version}.jar" load "org/bouncycastle/bcprov-jdk15on/#{version}/bcprov-jdk15on-#{version}.jar" end require 'jruby' require 'jopenssl.jar' org.jruby.ext.openssl.OpenSSL.load(JRuby.runtime) if RUBY_VERSION >= '2.1.0' load('jopenssl21/openssl.rb') elsif RUBY_VERSION >= '1.9.0' load('jopenssl19/openssl.rb') else load('jopenssl18/openssl.rb') end require 'openssl/pkcs12'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jruby-openssl-0.9.7-java | lib/jopenssl/load.rb |
jruby-openssl-0.9.6-java | lib/jopenssl/load.rb |