Esempio n. 1
0
    return IB_OK;
}

/**
 * Initial values of @ref ee_config_t.
 *
 * This static will *only* be passed to IronBee as part of module
 * definition.  It will never be read or written by any code in this file.
 */
static ee_config_t g_ee_config = {NULL};

#ifndef DOXYGEN_SKIP
static IB_DIRMAP_INIT_STRUCTURE(eudoxus_directive_map) = {
    IB_DIRMAP_INIT_PARAM2(
        "LoadEudoxus",
        load_eudoxus_pattern_param2,
        NULL
    ),

    /* signal the end of the list */
    IB_DIRMAP_INIT_LAST
};

/**
 * Module structure.
 *
 * This structure defines some metadata, config data and various functions.
 */
IB_MODULE_INIT(
    IB_MODULE_HEADER_DEFAULTS,            /**< Default metadata */
    MODULE_NAME_STR,                      /**< Module name */
Esempio n. 2
0
    if (rc != IB_OK) {
        return rc;
    }
    return rc;
}


static IB_DIRMAP_INIT_STRUCTURE(ident_config) = {
    IB_DIRMAP_INIT_PARAM1(
        "IdentMode",
        ident_mode,
        NULL
    ),
    IB_DIRMAP_INIT_PARAM2(
        "IdentType",
        ident_type,
        NULL
    ),

    /* End */
    IB_DIRMAP_INIT_LAST
};

static ident_cfg_t ident_cfg_ini = {
    ident_off,
    NULL,
    1,
    NULL
};

IB_MODULE_INIT(
Esempio n. 3
0
        "is_xss",
        IB_OP_CAPABILITY_NONE,
        NULL, NULL,
        NULL, NULL,
        xss_op_execute, NULL
    );
    if (rc != IB_OK) {
        return rc;
    }

    return IB_OK;
}

static IB_DIRMAP_INIT_STRUCTURE(sqli_directive_map) = {
    IB_DIRMAP_INIT_PARAM2(
        "LibInjectionFingerprintSet",
        sqli_dir_fingerprint_set, NULL
    ),
    IB_DIRMAP_INIT_LAST
};

/* Initialize the module structure. */
IB_MODULE_INIT(
    IB_MODULE_HEADER_DEFAULTS,           /* Default metadata */
    MODULE_NAME_STR,                     /* Module name */
    IB_MODULE_CONFIG(&sqli_initial_config), /* Global config data */
    NULL,                                /* Configuration field map */
    sqli_directive_map,                  /* Config directive map */
    sqli_init,                           /* Initialize function */
    NULL,                                /* Callback data */
    NULL,                                /* Finish function */
    NULL,                                /* Callback data */