Expand relative paths
@@ -416,6 +416,16 @@ static const char *oidc_set_dir_slot(cmd_parms *cmd, void *ptr, const char *arg)
return rv;
}
+/*
+ * set a path value in the server config, converting to absolute if necessary
+ */
+static const char *oidc_set_path_slot(cmd_parms *cmd, void *ptr, const char *arg) {
+ oidc_cfg *cfg = (oidc_cfg *) ap_get_module_config(
+ cmd->server->module_config, &auth_openidc_module);
+ const char *full_path = oidc_util_get_full_path(cmd->pool, arg);
+ return ap_set_string_slot(cmd, cfg, full_path);
+}
+
/*
* set the cookie domain in the server config and check it syntactically
*/
@@ -3255,7 +3265,7 @@ const command_rec oidc_config_cmds[] = {
"Define the cookie prefix for the state cookie."),
AP_INIT_TAKE1(OIDCCABundlePath,
- oidc_set_string_slot,
+ oidc_set_path_slot,
(void *) APR_OFFSETOF(oidc_cfg, ca_bundle_path),
RSRC_CONF,
"Sets the path to the CA bundle to be used by cURL."),
