From 56e77c4c668714ed3545b010518dd73721f6d3af Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Mon, 14 Aug 2023 17:34:49 +0300 Subject: [PATCH] fix for android build --- plugin/openssl/openssl_provider.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/openssl/openssl_provider.cc b/plugin/openssl/openssl_provider.cc index 0239bc811..2d5486438 100644 --- a/plugin/openssl/openssl_provider.cc +++ b/plugin/openssl/openssl_provider.cc @@ -119,7 +119,9 @@ OpensslCipherStream::~OpensslCipherStream() { } Status OpensslCipherStream::handleErrors(const char * str) { + # ifndef OPENSSL_NO_STDIO ERR_print_errors_fp(stderr); + # endif if (ctx_ != nullptr) { EVP_CIPHER_CTX_free(ctx_); ctx_ = nullptr; @@ -228,7 +230,9 @@ std::unique_ptr OpensslProvider::CreateProvider() { } Status OpensslProvider::handleErrors (const char * str) const { + # ifndef OPENSSL_NO_STDIO ERR_print_errors_fp(stderr); + # endif return Status::Aborted(str); }