Skip to content

Commit

Permalink
[compat] OpenSSL::ConfigError and DEFAULT_CONFIG_FILE (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed May 27, 2024
1 parent 5f462bd commit 5df8e30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/jopenssl/load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

module OpenSSL
autoload :Config, 'openssl/config' unless const_defined?(:Config, false)
autoload :ConfigError, 'openssl/config' unless const_defined?(:ConfigError, false)
autoload :PKCS12, 'openssl/pkcs12'
end

Expand Down
3 changes: 3 additions & 0 deletions lib/openssl/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
require 'stringio'

module OpenSSL
class ConfigError < OpenSSLError; end
##
# = OpenSSL::Config
#
Expand All @@ -27,6 +28,8 @@ module OpenSSL
class Config
include Enumerable

DEFAULT_CONFIG_FILE = nil # JRuby: compatibility (we do not read openssl.cnf)

class << self

##
Expand Down

0 comments on commit 5df8e30

Please sign in to comment.