Skip to content

Commit 881d900

Browse files
committed
Fix Openssl directive
1 parent 9b636ae commit 881d900

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/core/tsi/private_key_offload_test.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@
1313
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
16-
#if OPENSSL_VERSION_NUMBER >= 0x10100000
1716

1817
#include <grpc/event_engine/event_engine.h>
1918
#include <grpc/grpc.h>
2019
#include <grpc/private_key_signer.h>
20+
21+
#if OPENSSL_VERSION_NUMBER >= 0x10100000
2122
#include <openssl/digest.h>
2223
#include <openssl/ec.h>
2324
#include <openssl/evp.h>
2425
#include <openssl/rsa.h>
2526
#include <openssl/ssl.h>
27+
#endif
2628

2729
#include <atomic>
2830
#include <memory>
@@ -39,6 +41,7 @@
3941
#include "absl/strings/str_cat.h"
4042
#include "absl/synchronization/notification.h"
4143

44+
#if OPENSSL_VERSION_NUMBER >= 0x10100000
4245
namespace grpc_core {
4346
namespace testing {
4447

@@ -583,11 +586,10 @@ INSTANTIATE_TEST_SUITE_P(PrivateKeyOffloadTest, PrivateKeyOffloadTest,
583586
} // namespace
584587
} // namespace testing
585588
} // namespace grpc_core
589+
#endif
586590

587591
int main(int argc, char** argv) {
588592
grpc::testing::TestEnvironment env(&argc, argv);
589593
::testing::InitGoogleTest(&argc, argv);
590594
return RUN_ALL_TESTS();
591595
}
592-
593-
#endif

0 commit comments

Comments
 (0)