diff options
author | Adam Majer <amajer@suse.de> | 2022-09-23 02:19:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 02:19:44 +0300 |
commit | 456591829bf2785c1b02b607338d74f9c481ba96 (patch) | |
tree | 3deb36b0a7fdb958ccf706f40cd795fadc139c42 | |
parent | 098eac7f272f5e720c9aff8b232501928a88b82a (diff) |
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: https://github.com/nodejs/node/issues/44722
PR-URL: https://github.com/nodejs/node/pull/44725
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
-rw-r--r-- | test/addons/openssl-providers/binding.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/addons/openssl-providers/binding.cc b/test/addons/openssl-providers/binding.cc index b65f168fdaf..76cd076c1d9 100644 --- a/test/addons/openssl-providers/binding.cc +++ b/test/addons/openssl-providers/binding.cc @@ -1,6 +1,10 @@ #include <assert.h> #include <node.h> + +#include <openssl/opensslv.h> +#if OPENSSL_VERSION_MAJOR >= 3 #include <openssl/provider.h> +#endif namespace { |