Sha256: 3aef274baeedf85639641b1d08a177be796b5cec12b123463ed261f353be8c4e

Contents?: true

Size: 1.16 KB

Versions: 19

Compression:

Stored size: 1.16 KB

Contents

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

require 'java'
require 'jopenssl/version'

# NOTE: assuming user does pull in BC .jars from somewhere else on the CP
unless ENV_JAVA['jruby.openssl.load.jars'].eql?('false')
  version = Jopenssl::Version::BOUNCY_CASTLE_VERSION
  bc_jars = nil
  begin
    require 'jar-dependencies'
    # 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
  unless bc_jars
    load "org/bouncycastle/bcpkix-jdk15on/#{version}/bcpkix-jdk15on-#{version}.jar"
    load "org/bouncycastle/bcprov-jdk15on/#{version}/bcprov-jdk15on-#{version}.jar"
  end
end

require 'jruby'
require 'jopenssl.jar'
org.jruby.ext.openssl.OpenSSL.load(JRuby.runtime)

if RUBY_VERSION > '2.3'
  load 'jopenssl23/openssl.rb'
elsif RUBY_VERSION > '2.2'
  load 'jopenssl22/openssl.rb'
elsif RUBY_VERSION > '2.1'
  load 'jopenssl21/openssl.rb'
elsif RUBY_VERSION > '1.9'
  load 'jopenssl19/openssl.rb'
else
  load 'jopenssl18/openssl.rb'
end

require 'openssl/pkcs12'

Version data entries

19 entries across 19 versions & 7 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
jruby-openssl-0.9.18-java lib/jopenssl/load.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl/load.rb
jruby-openssl-0.9.17-java lib/jopenssl/load.rb
jruby-openssl-0.9.16-java lib/jopenssl/load.rb