RDEBUG("Expanding URI components");
- handle = fr_connection_get(inst->conn_pool);
+ handle = fr_connection_get(inst->pool);
if (!handle) return -1;
/*
finish:
rlm_rest_cleanup(instance, §ion, handle);
- fr_connection_release(inst->conn_pool, handle);
+ fr_connection_release(inst->pool, handle);
return outlen;
}
if (!section->name) return RLM_MODULE_NOOP;
- handle = fr_connection_get(inst->conn_pool);
+ handle = fr_connection_get(inst->pool);
if (!handle) return RLM_MODULE_FAIL;
ret = rlm_rest_perform(instance, section, handle, request, NULL, NULL);
rlm_rest_cleanup(instance, section, handle);
- fr_connection_release(inst->conn_pool, handle);
+ fr_connection_release(inst->pool, handle);
return rcode;
}
return RLM_MODULE_INVALID;
}
- handle = fr_connection_get(inst->conn_pool);
+ handle = fr_connection_get(inst->pool);
if (!handle) return RLM_MODULE_FAIL;
ret = rlm_rest_perform(instance, section, handle, request, username->vp_strvalue, password->vp_strvalue);
rlm_rest_cleanup(instance, section, handle);
- fr_connection_release(inst->conn_pool, handle);
+ fr_connection_release(inst->pool, handle);
return rcode;
}
if (!section->name) return RLM_MODULE_NOOP;
- handle = fr_connection_get(inst->conn_pool);
+ handle = fr_connection_get(inst->pool);
if (!handle) return RLM_MODULE_FAIL;
ret = rlm_rest_perform(inst, section, handle, request, NULL, NULL);
rlm_rest_cleanup(inst, section, handle);
- fr_connection_release(inst->conn_pool, handle);
+ fr_connection_release(inst->pool, handle);
return rcode;
}
if (!section->name) return RLM_MODULE_NOOP;
- handle = fr_connection_get(inst->conn_pool);
+ handle = fr_connection_get(inst->pool);
if (!handle) return RLM_MODULE_FAIL;
ret = rlm_rest_perform(inst, section, handle, request, NULL, NULL);
rlm_rest_cleanup(inst, section, handle);
- fr_connection_release(inst->conn_pool, handle);
+ fr_connection_release(inst->pool, handle);
return rcode;
}
inst->connect_timeout = ((inst->connect_timeout_tv.tv_usec * 1000) +
(inst->connect_timeout_tv.tv_sec / 1000));
- inst->conn_pool = fr_connection_pool_module_init(conf, inst, mod_conn_create, mod_conn_alive, NULL);
- if (!inst->conn_pool) return -1;
+ inst->pool = fr_connection_pool_module_init(conf, inst, mod_conn_create, mod_conn_alive, NULL);
+ if (!inst->pool) return -1;
return 0;
}
{
rlm_rest_t *inst = instance;
- fr_connection_pool_free(inst->conn_pool);
+ fr_connection_pool_free(inst->pool);
/* Free any memory used by libcurl */
rest_cleanup();
}
snprintf(prefix, sizeof(prefix), "rlm_yubikey (%s)", inst->name);
- inst->conn_pool = fr_connection_pool_module_init(conf, inst, mod_conn_create, NULL, prefix);
- if (!inst->conn_pool) {
+ inst->pool = fr_connection_pool_module_init(conf, inst, mod_conn_create, NULL, prefix);
+ if (!inst->pool) {
ykclient_done(&inst->ykc);
return -1;
int rlm_yubikey_ykclient_detach(rlm_yubikey_t *inst)
{
- fr_connection_pool_free(inst->conn_pool);
+ fr_connection_pool_free(inst->pool);
ykclient_done(&inst->ykc);
ykclient_global_done();
ykclient_rc status;
ykclient_handle_t *yandle;
- yandle = fr_connection_get(inst->conn_pool);
+ yandle = fr_connection_get(inst->pool);
if (!yandle) return RLM_MODULE_FAIL;
/*
}
}
- fr_connection_release(inst->conn_pool, yandle);
+ fr_connection_release(inst->pool, yandle);
return rcode;
}