Menu

mod-csrf support on RHEL8 with SSL 1.1.1 version

2022-03-23
2024-10-05
  • Naresh Nayyar

    Naresh Nayyar - 2022-03-23

    Hi,

    I can deploy mod-csrf using below command on RHEL7. RHEL7 has SSL version 1.0.2.
    sudo apxs -i -c mod_csrf.c -lcrypto

    Now When I tried to deploy it on RHEL 8, It failed with below error. RHEL8 has SSL version 1.1.1k.

    Error:
    mod_csrf.c:449:18: warning: unused variable ‘cipher_ctx’ [-Wunused-variable]
    mod_csrf.c: In function ‘csrf_enc64’:
    mod_csrf.c:502:18: error: storage size of ‘cipher_ctx’ isn’t known
    EVP_CIPHER_CTX cipher_ctx;

    Could you please provide fix for this issue in new package?

    Thanks

     
  • Gerry Gan

    Gerry Gan - 2024-07-30

    Hi,

    May I ask if the compile problem has been solved? We have encountered the same problem such that the build reports the same error when SSL is of 1.1.1. It is fine when SSL is 1.0.2.

    Thanks.

     
  • sum41

    sum41 - 2024-10-05

    I figured out how to patch this according to this post (https://stackoverflow.com/questions/26345175/correct-way-to-free-allocate-the-context-in-the-openssl)

    Now I can compile the module but it don't seam to be installed.

    Anyways I attached the patched c file maybe you know how to continue with this.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.