libcamera: ipa_manager: Fix build without openssl
Since commit bedef55d95
("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>
This commit is contained in:
parent
eb7e83b346
commit
74ab3f778c
1 changed files with 2 additions and 0 deletions
|
@ -109,8 +109,10 @@ IPAManager::IPAManager()
|
||||||
LOG(IPAManager, Fatal)
|
LOG(IPAManager, Fatal)
|
||||||
<< "Multiple IPAManager objects are not allowed";
|
<< "Multiple IPAManager objects are not allowed";
|
||||||
|
|
||||||
|
#if HAVE_IPA_PUBKEY
|
||||||
if (!pubKey_.isValid())
|
if (!pubKey_.isValid())
|
||||||
LOG(IPAManager, Warning) << "Public key not valid";
|
LOG(IPAManager, Warning) << "Public key not valid";
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned int ipaCount = 0;
|
unsigned int ipaCount = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue