Skip to content

Commit 5df8e30

Browse files
committed
[compat] OpenSSL::ConfigError and DEFAULT_CONFIG_FILE (#304)
1 parent 5f462bd commit 5df8e30

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/jopenssl/load.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
module OpenSSL
4545
autoload :Config, 'openssl/config' unless const_defined?(:Config, false)
46+
autoload :ConfigError, 'openssl/config' unless const_defined?(:ConfigError, false)
4647
autoload :PKCS12, 'openssl/pkcs12'
4748
end
4849

lib/openssl/config.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
require 'stringio'
1515

1616
module OpenSSL
17+
class ConfigError < OpenSSLError; end
1718
##
1819
# = OpenSSL::Config
1920
#
@@ -27,6 +28,8 @@ module OpenSSL
2728
class Config
2829
include Enumerable
2930

31+
DEFAULT_CONFIG_FILE = nil # JRuby: compatibility (we do not read openssl.cnf)
32+
3033
class << self
3134

3235
##

0 commit comments

Comments
 (0)