Skip to content

Commit c9419bf

Browse files
committed
test: fix addon tests compilation with OpenSSL 1.1.1
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
1 parent a2a32d8 commit c9419bf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/addons/openssl-providers/binding.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include <assert.h>
22
#include <node.h>
3+
4+
#if OPENSSL_VERSION_MAJOR >= 3
35
#include <openssl/provider.h>
6+
#endif
47

58
namespace {
69

0 commit comments

Comments
 (0)