Skip to content

Commit

Permalink
Merge pull request #270 from pghmcfc/old-openssl
Browse files Browse the repository at this point in the history
Fix compilation with old OpenSSL versions
  • Loading branch information
Castaglia committed Mar 30, 2024
2 parents 49116e2 + 98230db commit 225e683
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/proxy/ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "proxy/ssh/utf8.h"

#if defined(PR_USE_OPENSSL)
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/ssl.h>

Expand Down
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 225e683

Please sign in to comment.