TianoCore EDK2 master
Loading...
Searching...
No Matches
RedfishPlatformCredentialIpmiLib.h File Reference

Go to the source code of this file.

Data Structures

struct  BOOTSTRAP_CREDENTIALS_VARIABLE
 

Macros

#define CREDENTIAL_VARIABLE_NAME   L"Partstooblaitnederc"
 

Functions

EFI_STATUS GetBootstrapAccountCredentials (IN BOOLEAN DisableBootstrapControl, IN OUT CHAR8 *BootstrapUsername, OPTIONAL IN UINTN BootstrapUsernameSize, IN OUT CHAR8 *BootstrapPassword, OPTIONAL IN UINTN BootstrapPasswordSize)
 
EFI_STATUS SetBootstrapAccountCredentialsToVariable (IN CHAR8 *BootstrapUsername, OPTIONAL IN CHAR8 *BootstrapPassword, OPTIONAL IN BOOLEAN DeleteVariable)
 

Detailed Description

Header file for RedfishPlatformCredentialIpmiLib.

Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file RedfishPlatformCredentialIpmiLib.h.

Macro Definition Documentation

◆ CREDENTIAL_VARIABLE_NAME

#define CREDENTIAL_VARIABLE_NAME   L"Partstooblaitnederc"

Definition at line 28 of file RedfishPlatformCredentialIpmiLib.h.

Function Documentation

◆ GetBootstrapAccountCredentials()

EFI_STATUS GetBootstrapAccountCredentials ( IN BOOLEAN  DisableBootstrapControl,
IN OUT CHAR8 *  BootstrapUsername,
OPTIONAL IN UINTN  BootstrapUsernameSize,
IN OUT CHAR8 *  BootstrapPassword,
OPTIONAL IN UINTN  BootstrapPasswordSize 
)

Function to retrieve temporary user credentials for the UEFI redfish client. This function can also disable bootstrap credential service in BMC.

Parameters
[in]DisableBootstrapControlTRUE - Tell the BMC to disable the bootstrap credential service to ensure no one else gains credentials FALSE Allow the bootstrap credential service to continue
[in,out]BootstrapUsernameA pointer to a Ascii encoded string for the credential username When DisableBootstrapControl is TRUE, this pointer can be NULL
[in]BootstrapUsernameSizeThe size of BootstrapUsername including NULL terminator in bytes. Per specification, the size is USERNAME_MAX_SIZE.
[in,out]BootstrapPasswordA pointer to a Ascii encoded string for the credential password When DisableBootstrapControl is TRUE, this pointer can be NULL
[in]BootstrapPasswordSizeThe size of BootstrapPassword including NULL terminator in bytes. Per specification, the size is PASSWORD_MAX_SIZE.
Return values
EFI_SUCCESSCredentials were successfully fetched and returned. When DisableBootstrapControl is set to TRUE, the bootstrap credential service is disabled successfully.
EFI_INVALID_PARAMETERBootstrapUsername or BootstrapPassword is NULL when DisableBootstrapControl is set to FALSE. BootstrapUsernameSize or BootstrapPasswordSize is incorrect when DisableBootstrapControl is set to FALSE.
EFI_DEVICE_ERRORAn IPMI failure occurred

Definition at line 132 of file RedfishPlatformCredentialIpmiLib.c.

◆ SetBootstrapAccountCredentialsToVariable()

EFI_STATUS SetBootstrapAccountCredentialsToVariable ( IN CHAR8 *  BootstrapUsername,
OPTIONAL IN CHAR8 *  BootstrapPassword,
OPTIONAL IN BOOLEAN  DeleteVariable 
)

Function to save temporary user credentials into boot time variable. When DeleteVariable is True, this function delete boot time variable.

Parameters
[in]BootstrapUsernameA pointer to a Ascii encoded string for the credential username.
[in]BootstrapPasswordA pointer to a Ascii encoded string for the credential password.
[in]DeleteVariableTrue to remove boot time variable. False otherwise.
Return values
EFI_SUCCESSCredentials were successfully saved.
EFI_INVALID_PARAMETERBootstrapUsername or BootstrapPassword is NULL
OthersError occurs

Definition at line 305 of file RedfishPlatformCredentialIpmiLib.c.