Ejemplo n.º 1
0
static const char *set_dbm_slot(cmd_parms *cmd, void *offset, char *f, char *t)
{
    if (!t || strcmp(t, "dbm"))
	return DECLINE_CMD;

    return ap_set_file_slot(cmd, offset, f);
}
Ejemplo n.º 2
0
static const char *set_auth_slot(cmd_parms *cmd, void *offset, char *f, char *t)
{
    if (t && strcmp(t, "standard"))
	return ap_pstrcat(cmd->pool, "Invalid auth file type: ", t, NULL);

    return ap_set_file_slot(cmd, offset, f);
}
Ejemplo n.º 3
0
/**
 * @internal
 *
 * Called to handle the "IronBeeConfig" configuration directive.
 */
static const char *ironbee_cmd_ibconfig(cmd_parms *cmd,
                                        void *dummy,
                                        const char *p1)
{
    if (cmd->server->is_virtual) {
        return MODULE_NAME_STR ": IronBeeConfig not allowed in VirtualHost";
    }
    dummy = ap_get_module_config(cmd->server->module_config, &ironbee_module);
    return ap_set_file_slot(cmd, dummy, p1);
}