Class: OSSL::Config
Constant Summary collapse
- DEFAULT_CONFIG_FILE =
rb_str_new2(CONF_get1_default_config_file())
Class Method Summary collapse
Instance Method Summary collapse
-
#[] ⇒ Object
Get all numbers as strings - use str.to_i to convert long number = CONF_get_number(confp->config, sect, StringValuePtr(item));.
- #[]= ⇒ Object
- #add_value ⇒ Object
- #each ⇒ Object
- #get_value ⇒ Object
- #initialize ⇒ Object constructor
- #inspect ⇒ Object
- #section ⇒ Object
- #sections ⇒ Object
- #to_s ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize ⇒ Object
Class Method Details
.parse ⇒ Object
Instance Method Details
#[] ⇒ Object
Get all numbers as strings - use str.to_i to convert long number = CONF_get_number(confp->config, sect, StringValuePtr(item));
|
# File 'ossl_config.c'
static VALUE
ossl_config_get_section(VALUE self, VALUE section)
{
CONF *conf;
STACK_OF(CONF_VALUE) *sk;
CONF_VALUE *entry;
int i, entries;
VALUE hash;
hash = rb_hash_new();
StringValue(section);
GetConfig(self, conf);
if (!(sk = NCONF_get_section(conf, StringValuePtr(section)))) {
ERR_clear_error();
return hash;
}
|