Skip to content

Commit

Permalink
Fix compilation with OpenSSL prior to 1.1.x
Browse files Browse the repository at this point in the history
Variable crypto_engine is used but not declared when build with
OpenSSL later than 0.9.7 and prior to 1.1.0. It's also necessary
to include <openssl/engine.h> for the declaration of ENGINE_cleanup()
in the same cases.

The related code looks like it might be left over and not actually
used in mod_proxy.
  • Loading branch information
pghmcfc committed Mar 30, 2024
1 parent 9625ed0 commit 98230db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/proxy/ssh/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
#endif /* !OPENSSL_NO_DES */
#include <openssl/err.h>

#if OPENSSL_VERSION_NUMBER > 0x000907000L && \
OPENSSL_VERSION_NUMBER < 0x10100000L
#include <openssl/engine.h>
static const char *crypto_engine = NULL;
#endif

struct proxy_ssh_cipher {
const char *name;
const char *openssl_name;
Expand Down

0 comments on commit 98230db

Please sign in to comment.