method

get_value

v1_9_1_378 - Show latest stable - Class: OpenSSL::Config
get_value(p1, p2)
public

No documentation available.

static VALUE
ossl_config_get_value(VALUE self, VALUE section, VALUE name)
{
    CONF *conf;
    char *str;

    StringValue(section);
    StringValue(name);
    GetConfig(self, conf);
    str = NCONF_get_string(conf, RSTRING_PTR(section), RSTRING_PTR(name));
    if(!str){
        ERR_clear_error();
        return Qnil;
    }

    return rb_str_new2(str);
}