bmc: enable configuration of all verification
Enable verification configuration beyond the result file check. This
patchset allows a developer to provide their own verification mechanisms
by implementing an interface and adding configuration to enable using
their custom version.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Iba5d4be75bb49d9c4ab84be8578f0306c15b5be9
diff --git a/main.cpp b/main.cpp
index 6458b98..a711227 100644
--- a/main.cpp
+++ b/main.cpp
@@ -24,6 +24,7 @@
#include "lpc_nuvoton.hpp"
#include "pci_handler.hpp"
#include "util.hpp"
+#include "verify.hpp"
#include <cstdint>
#include <memory>
@@ -94,8 +95,10 @@
using namespace phosphor::logging;
auto handler = blobs::FirmwareBlobHandler::CreateFirmwareBlobHandler(
- sdbusplus::bus::new_default(), blobs::supportedFirmware,
- blobs::supportedTransports, VERIFY_STATUS_FILENAME);
+ blobs::supportedFirmware, blobs::supportedTransports,
+ blobs::Verification::CreateDefaultVerification(
+ sdbusplus::bus::new_default(), VERIFY_STATUS_FILENAME,
+ VERIFY_DBUS_SERVICE));
if (!handler)
{