VirtualBox

Changeset 91401 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 27, 2021 2:01:54 PM (3 years ago)
Author:
vboxsync
Message:

Main: Add IUefiVariableStore interface to manage the content of the UEFI variable store for secure boot support, bugref:9580 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UefiVariableStoreImpl.cpp

    r91396 r91401  
    383383                                                          const com::Guid &aOwnerUuid, SignatureType_T enmSignatureType)
    384384{
    385     HRESULT hrc = S_OK;
    386385    RTVFSFILE hVfsFileSigDb = NIL_RTVFSFILE;
    387386
    388     int vrc = i_uefiVarStoreAddVar(pGuid, pszDb,
     387    HRESULT hrc = i_uefiVarStoreAddVar(pGuid, pszDb,
    389388                                     EFI_VAR_HEADER_ATTR_NON_VOLATILE
    390389                                   | EFI_VAR_HEADER_ATTR_BOOTSERVICE_ACCESS
     
    392391                                   | EFI_AUTH_VAR_HEADER_ATTR_TIME_BASED_AUTH_WRITE_ACCESS,
    393392                                   &hVfsFileSigDb);
    394     if (RT_SUCCESS(vrc))
     393    if (SUCCEEDED(hrc))
    395394    {
    396395        RTEFISIGDB hEfiSigDb;
    397         vrc = RTEfiSigDbCreate(&hEfiSigDb);
     396
     397        int vrc = RTEfiSigDbCreate(&hEfiSigDb);
    398398        if (RT_SUCCESS(vrc))
    399399        {
     
    422422        RTVfsFileRelease(hVfsFileSigDb);
    423423    }
    424     else
    425         hrc = setError(E_FAIL, tr("Opening signature database '%s' failed: %Rrc"), pszDb, vrc);
    426424
    427425    return hrc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette