[libcamera-devel] [PATCH] libcamera: ipa_manager: Fix build without openssl
Matthias Fend
matthias.fend at emfend.at
Wed Sep 14 09:00:25 CEST 2022
Since commit bedef55d9500 ("libcamera: pub_key: Gracefully handle failures
to load public key'") the build will fail if openssl is not found on the
host system.
Use the existing HAVE_IPA_PUBKEY define to avoid accessing pubKey_ which
does not exist when building without openssl.
Signed-off-by: Matthias Fend <matthias.fend at emfend.at>
---
src/libcamera/ipa_manager.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libcamera/ipa_manager.cpp b/src/libcamera/ipa_manager.cpp
index 2f96a207..030ef43f 100644
--- a/src/libcamera/ipa_manager.cpp
+++ b/src/libcamera/ipa_manager.cpp
@@ -109,8 +109,10 @@ IPAManager::IPAManager()
LOG(IPAManager, Fatal)
<< "Multiple IPAManager objects are not allowed";
+#if HAVE_IPA_PUBKEY
if (!pubKey_.isValid())
LOG(IPAManager, Warning) << "Public key not valid";
+#endif
unsigned int ipaCount = 0;
--
2.25.1
More information about the libcamera-devel
mailing list