OpenCorePkg/Include/Library/OcAppleSecureBootLib.h

39 lines
1.3 KiB
C

/** @file
Copyright (C) 2019, Download-Fritz. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef OC_APPLE_SECURE_BOOT_LIB_H
#define OC_APPLE_SECURE_BOOT_LIB_H
#include <Protocol/AppleSecureBoot.h>
/**
Install and initialise the Apple Secure Boot protocol.
@param[in] Reinstall Replace any installed protocol.
@param[in] SbPolicy Apple Secure Boot Policy to install.
@param[in] SbWinPolicy Apple Secure Boot Windows Policy to install.
@param[in] SbWinPolicyValid Whether SbWinPolicy should be installed.
@returns Installed or located protocol.
@retval NULL There was an error locating or installing the protocol.
**/
APPLE_SECURE_BOOT_PROTOCOL *
OcAppleSecureBootInstallProtocol (
IN BOOLEAN Reinstall,
IN UINT8 SbPolicy,
IN UINT8 SbWinPolicy OPTIONAL,
IN BOOLEAN SbWinPolicyValid
);
#endif // OC_APPLE_SECURE_BOOT_LIB_H