Class: OSSL::Config

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
ossl_config.c

Constant Summary collapse

DEFAULT_CONFIG_FILE =
rb_str_new2(CONF_get1_default_config_file())

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Class Method Details

.parseObject

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;
}

#[]=Object

#add_valueObject

#eachObject

#get_valueObject

#inspectObject

#sectionObject

#sectionsObject

#to_sObject

#valueObject