mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 09:05:06 +03:00
apps: Add ipa-verify application
When packaging libcamera, distributions may break IPA module signatures if the packaging process strips binaries. This can be fixed by resigning the modules, but the process is error-prone. Add a command line ipa-verify utility that tests the signature on an IPA module to help packagers. The tool takes a single argument, the path to an IPA module shared object, and expects the signature file (.sign) to be in the same directory. In order to access the public key needed for signature verification, add a static function to the IPAManager class. As the class is internal to libcamera, this doesn't affect the public API. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Tested-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
1d5a072c5e
commit
52579639ce
5 changed files with 101 additions and 0 deletions
|
@ -47,6 +47,13 @@ public:
|
|||
return proxy;
|
||||
}
|
||||
|
||||
#if HAVE_IPA_PUBKEY
|
||||
static const PubKey &pubKey()
|
||||
{
|
||||
return pubKey_;
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
static IPAManager *self_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue