summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Fend <matthias.fend@emfend.at>2022-09-14 09:00:25 +0200
committerUmang Jain <umang.jain@ideasonboard.com>2022-09-15 16:13:40 +0530
commit74ab3f778c848b20cbf8fe299170756ff6ebab1a (patch)
tree10072d21d981f708c04dbfaf3c37f6094c2e9368
parenteb7e83b346a8dbfe4259a947ca73ed08ceb558a4 (diff)
libcamera: ipa_manager: Fix build without openssl
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@emfend.at> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
-rw-r--r--src/libcamera/ipa_manager.cpp2
1 files changed, 2 insertions, 0 deletions
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;