Sha256: 833f270ecb3d0d13f8edd273a58c88143ced845fa3beedf07fd26e31cc991b89

Contents?: true

Size: 982 Bytes

Versions: 61

Compression:

Stored size: 982 Bytes

Contents

# frozen_string_literal: false
module OpenSSL
  module PKey
    if defined?(OpenSSL::PKey::DH)

    class DH
      DEFAULT_512 = new <<-_end_of_pem_
-----BEGIN DH PARAMETERS-----
MEYCQQD0zXHljRg/mJ9PYLACLv58Cd8VxBxxY7oEuCeURMiTqEhMym16rhhKgZG2
zk2O9uUIBIxSj+NKMURHGaFKyIvLAgEC
-----END DH PARAMETERS-----
      _end_of_pem_

      DEFAULT_1024 = new <<-_end_of_pem_
-----BEGIN DH PARAMETERS-----
MIGHAoGBAJ0lOVy0VIr/JebWn0zDwY2h+rqITFOpdNr6ugsgvkDXuucdcChhYExJ
AV/ZD2AWPbrTqV76mGRgJg4EddgT1zG0jq3rnFdMj2XzkBYx3BVvfR0Arnby0RHR
T4h7KZ/2zmjvV+eF8kBUHBJAojUlzxKj4QeO2x20FP9X5xmNUXeDAgEC
-----END DH PARAMETERS-----
      _end_of_pem_
    end

    DEFAULT_TMP_DH_CALLBACK = lambda { |ctx, is_export, keylen|
      warn "using default DH parameters." if $VERBOSE
      case keylen
      when 512  then OpenSSL::PKey::DH::DEFAULT_512
      when 1024 then OpenSSL::PKey::DH::DEFAULT_1024
      else
        nil
      end
    }

    else
      DEFAULT_TMP_DH_CALLBACK = nil
    end
  end
end

Version data entries

61 entries across 59 versions & 11 rubygems

Version Path
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/jruby-openssl-0.9.19-java/lib/jopenssl23/openssl/pkey.rb