Skip to content

Commit

Permalink
test: fix addon tests compilation with OpenSSL 1.1.1
Browse files Browse the repository at this point in the history
openssl/provider.h header is not part of OpenSSL 1.1.1 so do not
include it when building with an older instance.

Fixes: #44722
  • Loading branch information
AdamMajer committed Sep 19, 2022
1 parent a2a32d8 commit c9419bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/addons/openssl-providers/binding.cc
@@ -1,6 +1,9 @@
#include <assert.h>
#include <node.h>

#if OPENSSL_VERSION_MAJOR >= 3
#include <openssl/provider.h>
#endif

namespace {

Expand Down

0 comments on commit c9419bf

Please sign in to comment.