Skip to content

Commit dcc9543

Browse files
committed
let's set the DEFAULT_CONFIG_FILE to nil (just to have constant around)
1 parent b080b73 commit dcc9543

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main/java/org/jruby/ext/openssl/Config.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,20 @@
3232
import org.jruby.RubyModule;
3333

3434
/**
35+
* OpenSSL::Config (native parts)
3536
* @author <a href="mailto:[email protected]">Ola Bini</a>
3637
*/
3738
public class Config {
3839
// TODO: we cannot detect OS's default config file. ignore?
39-
public static final String DEFAULT_CONFIG_FILE = "./openssl.cnf";
40+
// public static final String DEFAULT_CONFIG_FILE = "./openssl.cnf";
4041

41-
public static void createConfig(Ruby runtime, RubyModule mOSSL) {
42-
RubyClass cConfig = mOSSL.defineClassUnder("Config", runtime.getObject(), runtime.getObject().getAllocator());
43-
cConfig.defineAnnotatedMethods(Config.class);
44-
RubyClass openSSLError = mOSSL.getClass("OpenSSLError");
45-
mOSSL.defineClassUnder("ConfigError", openSSLError, openSSLError.getAllocator());
42+
public static void createConfig(Ruby runtime, RubyModule OpenSSL) {
43+
RubyClass Config = OpenSSL.defineClassUnder("Config", runtime.getObject(), runtime.getObject().getAllocator());
44+
Config.defineAnnotatedMethods(Config.class);
45+
RubyClass openSSLError = OpenSSL.getClass("OpenSSLError");
46+
OpenSSL.defineClassUnder("ConfigError", openSSLError, openSSLError.getAllocator());
4647
// TODO: we should define this constant with proper path. (see above)
47-
//cConfig.setConstant("DEFAULT_CONFIG_FILE", runtime.newString(DEFAULT_CONFIG_FILE));
48+
Config.setConstant("DEFAULT_CONFIG_FILE", runtime.getNil()); // runtime.newString(DEFAULT_CONFIG_FILE)
4849
}
49-
}// Config
50+
51+
}

0 commit comments

Comments
 (0)