logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.



Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: How to Build mod_csrf on windows
Author
apishdad



Joined: 01 Jul 2019
Posts: 7
Location: Canada, Toronto

PostPosted: Wed 28 Oct '20 17:43    Post subject: How to Build mod_csrf on windows Reply with quote

Hi, Does anybody know how to build mod_csrf in windows ?
Apache documentation points to the apache extension tool to do this:
https://httpd.apache.org/docs/2.4/programs/apxs.html
However I need to execute this tool in windows, where can I download it?
Thanks
Back to top
tangent



Joined: 16 Aug 2020
Posts: 20
Location: UK

PostPosted: Wed 28 Oct '20 23:47    Post subject: Reply with quote

I've had a quick look at this problem.

You've already worked out by default there is no apxs for Windows, so to build this module you have to go back to basics.

However, when trying to build mod_csrf (0.9) I hit a number of issues.

    Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x64
    Copyright (C) Microsoft Corporation. All rights reserved.

    mod_csrf.c
    mod_csrf.c(449): error C2079: 'cipher_ctx' uses undefined struct 'evp_cipher_ctx_st'

Looking at line 449 of the source code we have the following declaration:

EVP_CIPHER_CTX cipher_ctx;

Unfortunately, this suggests the module code was written for OpenSSL 1.0 rather than 1.1 series, where some data types were changed to be non-opaque to hide their internal structure.

Looking elsewhere at the code, it seems to be nominally targetted at Apache 2.2, so unfortunately, without someone picking up the module source code and modifying it for later versions of OpenSSL and Apache, I think you're stuck.

The current module hasn't been updated for several years, and is still on SourceForge, noting the original authors haven't migrated the code to GitHub.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6861
Location: Germany, Next to Hamburg

PostPosted: Thu 29 Oct '20 10:01    Post subject: Reply with quote

apxs.bat only generates a makefile.

However mod_Security can do csfr if I remember correctly.
Back to top


Reply to topic   Topic: How to Build mod_csrf on windows View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads