File tree Expand file tree Collapse file tree
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242end
4343
4444module OpenSSL
45+ autoload :Config , 'openssl/config' unless const_defined? ( :Config , false )
4546 autoload :PKCS12 , 'openssl/pkcs12'
4647end
Original file line number Diff line number Diff line change 1313require 'openssl/bn'
1414require 'openssl/pkey'
1515require 'openssl/cipher'
16- require 'openssl/config'
16+ require 'openssl/config' if OpenSSL . const_defined? ( :Config , false )
1717require 'openssl/digest'
1818require 'openssl/x509'
1919require 'openssl/ssl'
Original file line number Diff line number Diff line change 66 load "jopenssl21/openssl/#{ File . basename ( __FILE__ ) } "
77else
88 load "jopenssl19/openssl/#{ File . basename ( __FILE__ ) } "
9- end
9+ end
10+
11+ # @note moved from JOpenSSL native bits.
12+ module OpenSSL
13+ class Config
14+ DEFAULT_CONFIG_FILE = nil
15+ end
16+ class ConfigError < OpenSSLError ; end
17+ end
Original file line number Diff line number Diff line change 3535 * OpenSSL::Config (native parts)
3636 * @author <a href="mailto:ola.bini@ki.se">Ola Bini</a>
3737 */
38+ @ Deprecated // move to .rb (for now) as its now lazy loaded ...
3839public class Config {
3940 // TODO: we cannot detect OS's default config file. ignore?
4041 // public static final String DEFAULT_CONFIG_FILE = "./openssl.cnf";
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public static void createOpenSSL(final Ruby runtime) {
6666 final String warn = SafePropertyAccessor .getProperty ("jruby.openssl.warn" );
6767 if ( warn != null ) OpenSSL .warn = Boolean .parseBoolean (warn );
6868
69- Config .createConfig (runtime , _OpenSSL );
69+ // Config.createConfig(runtime, _OpenSSL);
7070 ExtConfig .create (runtime , _OpenSSL );
7171 PKey .createPKey (runtime , _OpenSSL );
7272 BN .createBN (runtime , _OpenSSL );
You can’t perform that action at this time.
0 commit comments