Skip to content

Commit a56cb65

Browse files
AdamMajerRafaelGSS
authored andcommitted
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 PR-URL: #44725 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 57dac53 commit a56cb65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/addons/openssl-providers/binding.cc

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#include <assert.h>
22
#include <node.h>
3+
4+
#include <openssl/opensslv.h>
5+
#if OPENSSL_VERSION_MAJOR >= 3
36
#include <openssl/provider.h>
7+
#endif
48

59
namespace {
610

0 commit comments

Comments
 (0)