-
Notifications
You must be signed in to change notification settings - Fork 220
aes_ctr not supported with >=openssl-3.0 #1980
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
base: master
Are you sure you want to change the base?
Conversation
PPN-SD
commented
Sep 13, 2025
>crypto.c:742:7: error: call to undeclared function 'ctr_incr'; ISO C99 >and later do not support implicit function > declarations [-Wimplicit-function-declaration] > 742 | ctr_incr(ace->counter, AES_BLOCK_SIZE); > | ^
|
Please provide some specifics about your build environment used to encounter this issue, including:
These details will help me reproduce the reported behavior locally. Thanks! |
|
Compiler : clang-21 Linux/Gentoo OpenSSL : it fails w/ 3.5.2. it compiles with 1.1.1w |
|
Interesting. I don't usually use Gentoo; for this, I'm attempting to reproduce this using an Alpine Docker image, with this Dockerfile: This installs OpenSSL 3.5.2, per: Using this container, with the latest ProFTPD source code, built using: I am not seeing the reported behavior. I also tried using Clang instead of GCC; still no build issues or warnings encountered. Hmm. I wonder what might be different? |
|
Maybe try building proftpd with -DOPENSSL_NO_DEPRECATED_3_0 ? (openssl/openssl@0016a03) |
Hmm. I tried this as well, using an Ubuntu 25:10 image (which installs OpenSSL 3.5.3), along with Still no compilation failures or warnings for that mod_sftp Compilation of ProFTPD, with the selected modules still succeeds for me. |
|
OK. I'll try on my side, maybe a strict compiler flag. |
Understood. I'd like to reproduce that exact build failure locally, so that I can see what other consequences there might be. On your Gentoo box, what does |
|
With the same version of openssl, it occurs only with clang-21, gcc-15 is fine. clang is somewhere stricter I guess : ctr_incr is declared only w/ <openssl-3 |