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
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>
  • Loading branch information
AdamMajer authored and RafaelGSS committed Sep 26, 2022
1 parent 57dac53 commit a56cb65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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 {

Expand Down

0 comments on commit a56cb65

Please sign in to comment.