From: Nick Porter Date: Mon, 13 Feb 2023 16:31:52 +0000 (+0000) Subject: Add libcurl connection config to rlm_rest X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73a211589f09582490f75ae3cecc75cb3c7b7cc1;p=thirdparty%2Ffreeradius-server.git Add libcurl connection config to rlm_rest --- diff --git a/src/modules/rlm_rest/rest.h b/src/modules/rlm_rest/rest.h index 0945c5db841..2e1c5ee6201 100644 --- a/src/modules/rlm_rest/rest.h +++ b/src/modules/rlm_rest/rest.h @@ -157,6 +157,8 @@ typedef struct { fr_pool_t *pool; //!< Pointer to the connection pool. + fr_curl_conn_config_t conn_config; //!< Configuration of slab allocated connection handles. + rlm_rest_section_t xlat; //!< Configuration specific to xlat. rlm_rest_section_t authorize; //!< Configuration specific to authorisation. rlm_rest_section_t authenticate; //!< Configuration specific to authentication. diff --git a/src/modules/rlm_rest/rlm_rest.c b/src/modules/rlm_rest/rlm_rest.c index e01eb5f8393..3f6ec041c9e 100644 --- a/src/modules/rlm_rest/rlm_rest.c +++ b/src/modules/rlm_rest/rlm_rest.c @@ -141,6 +141,8 @@ static const CONF_PARSER module_config[] = { { FR_CONF_OFFSET("http_negotiation", FR_TYPE_VOID, rlm_rest_t, http_negotiation), .func = cf_table_parse_int, .uctx = &(cf_table_parse_ctx_t){ .table = http_negotiation_table, .len = &http_negotiation_table_len }, .dflt = "default" }, + { FR_CONF_OFFSET("connection", FR_TYPE_SUBSECTION, rlm_rest_t, conn_config), .subcs = (void const *) fr_curl_conn_config }, + #ifdef CURLPIPE_MULTIPLEX { FR_CONF_OFFSET("multiplex", FR_TYPE_BOOL, rlm_rest_t, multiplex), .dflt = "yes" }, #endif