Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to build ModSecurity-nginx on Windows #321

Merged
merged 7 commits into from
May 23, 2024
Merged

Add support to build ModSecurity-nginx on Windows #321

merged 7 commits into from
May 23, 2024

Commits on May 4, 2024

  1. Configuration menu
    Copy the full SHA
    dd38f5e View commit details
    Browse the repository at this point in the history
  2. nginx Windows build uses precompiled headers

    - All source code files need to include `ngx_config.h` and this needs
      to be the first header file included.
    eduar-hte committed May 4, 2024
    Configuration menu
    Copy the full SHA
    4fc47e3 View commit details
    Browse the repository at this point in the history
  3. strdup not available in MSVC compiler

    - Added define to avoid the following warning, treated as an error
      by the nginx build system:
      warning C4996: 'strdup': The POSIX name for this item is deprecated. Ins
    tead, use the ISO C++ conformant name: _strdup. See online help for details.
    eduar-hte committed May 4, 2024
    Configuration menu
    Copy the full SHA
    fffc91d View commit details
    Browse the repository at this point in the history
  4. Removed inline specifier in functions that need to be exported

    - `ngx_http_modsecurity_process_intervention` &
      `ngx_http_modsecurity_create_ctx` are exported by
      `ngx_http_modsecurity_module.c`, so they can't be declared as
      inline because the MSVC compiler will not export them in the
      generated object file.
    eduar-hte committed May 4, 2024
    Configuration menu
    Copy the full SHA
    2e4cbf7 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Build on Windows

    - Windows Docker container to build libModSecurity v3 & nginx w/ModSecurity-nginx
    eduar-hte committed May 15, 2024
    Configuration menu
    Copy the full SHA
    1c0324e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dc6c6f View commit details
    Browse the repository at this point in the history
  3. Updated Linux GH workflow

    - Include steps to run all ModSecurity-nginx tests
    - Simplify checkout of libModSecurity
    eduar-hte committed May 15, 2024
    Configuration menu
    Copy the full SHA
    43b0531 View commit details
    Browse the repository at this point in the history