]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add libcurl connection config to rlm_rest
authorNick Porter <nick@portercomputing.co.uk>
Mon, 13 Feb 2023 16:31:52 +0000 (16:31 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 15 Feb 2023 16:11:33 +0000 (16:11 +0000)
src/modules/rlm_rest/rest.h
src/modules/rlm_rest/rlm_rest.c

index 0945c5db841e5ea2e1f31a1804175c4c378a8859..2e1c5ee62014381cd434451b75f564af73593393 100644 (file)
@@ -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.
index e01eb5f8393ef09c0a175eb86e6a7a5415d41300..3f6ec041c9e55a69da7f8197717a0903fe7f22e4 100644 (file)
@@ -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