Skip to content

Fix FTBFS with OpenSSL 4 - #147

Open
vmpyr wants to merge 1 commit into
nmap:masterfrom
vmpyr:vmpyr/fix-146
Open

Fix FTBFS with OpenSSL 4#147
vmpyr wants to merge 1 commit into
nmap:masterfrom
vmpyr:vmpyr/fix-146

Conversation

@vmpyr

@vmpyr vmpyr commented Jul 28, 2026

Copy link
Copy Markdown

Closes: #146

The bundled opensshlib files cipher-3des1.c and cipher-bf1.c implement the SSH protocol 1 "3des" and "blowfish" ciphers using the EVP_CIPHER_meth_*() API, which was deprecated in OpenSSL 3.0 and removed entirely in OpenSSL 4.0. Compiling them against OpenSSL 4 fails with implicit-declaration errors.

These ciphers are only referenced from cipher.c inside #ifdef WITH_SSH1 blocks, and Ncrack's build never enables SSH protocol 1 support (it does not pass --with-ssh1 to the bundled opensshlib configure), so this code is never actually used. Guard the affected code with WITH_SSH1 so it is compiled out, matching how its only consumers in cipher.c are already guarded. This keeps the package building with both OpenSSL 3 and OpenSSL 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure with OpenSSL 4.0

1 participant