/** @file\r
The header file for user profile manager driver.\r
- \r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
+\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
#include <Guid/MdeModuleHii.h>\r
\r
#include <Protocol/HiiConfigAccess.h>\r
-#include <Protocol/DevicePathToText.h>\r
#include <Protocol/UserCredential2.h>\r
#include <Protocol/UserManager.h>\r
\r
EFI_TIME UsageDate;\r
UINTN AccessPolicyLen;\r
UINTN IdentityPolicyLen;\r
- UINTN NewIdentityPolicyLen; \r
+ UINTN NewIdentityPolicyLen;\r
UINT8 *AccessPolicy;\r
UINT8 *IdentityPolicy;\r
UINT8 *NewIdentityPolicy;\r
/**\r
Add a username item in form.\r
\r
- @param[in] User Points to the user profile whose username is added. \r
+ @param[in] User Points to the user profile whose username is added.\r
@param[in] Index The index of the user in the user name list.\r
@param[in] OpCodeHandle Points to container for dynamic created opcodes.\r
\r
and access policy are displayed.\r
\r
@param[in] UserIndex The index of the user in display list to modify.\r
- \r
+\r
**/\r
VOID\r
ModifyUserInfo (\r
);\r
\r
/**\r
- Get the username from user input and update username string in Hii \r
+ Get the username from user input and update username string in Hii\r
database with it.\r
\r
**/\r
\r
/**\r
Save the identity policy and update UI with it.\r
- \r
- This funciton will verify the new identity policy, in current implementation, \r
+\r
+ This function will verify the new identity policy, in current implementation,\r
the identity policy can be: T, P & P & P & ..., P | P | P | ...\r
Here, "T" means "True", "P" means "Credential Provider", "&" means "and", "|" means "or".\r
- Other identity policies are not supported. \r
+ Other identity policies are not supported.\r
\r
**/\r
VOID\r
\r
In this form, access right, access setu,p and access boot order are dynamically\r
added. Load devicepath and connect devicepath are displayed too.\r
- \r
+\r
**/\r
VOID\r
ModidyAccessPolicy (\r
);\r
\r
/**\r
- Collect all the access policy data to mUserInfo.AccessPolicy, \r
+ Collect all the access policy data to mUserInfo.AccessPolicy,\r
and save it to user profile.\r
\r
**/\r
);\r
\r
/**\r
- Delete the specified device path by DriverIndex from the forbid device path \r
+ Delete the specified device path by DriverIndex from the forbid device path\r
list (mAccessInfo.LoadForbid).\r
\r
@param[in] DriverIndex The index of driver in a forbidden device path list.\r
- \r
+\r
**/\r
VOID\r
DeleteFromForbidLoad (\r
IN UINT16 DriverIndex\r
);\r
- \r
+\r
/**\r
- Add the specified device path by DriverIndex to the forbid device path \r
+ Add the specified device path by DriverIndex to the forbid device path\r
list (mAccessInfo.LoadForbid).\r
\r
@param[in] DriverIndex The index of driver saved in driver options.\r
- \r
+\r
**/\r
VOID\r
AddToForbidLoad (\r
\r
/**\r
Get user name from the popup windows.\r
- \r
+\r
@param[in, out] UserNameLen On entry, point to the buffer lengh of UserName.\r
On exit, point to the input user name length.\r
@param[out] UserName The buffer to hold the input user name.\r
- \r
+\r
@retval EFI_ABORTED It is given up by pressing 'ESC' key.\r
@retval EFI_NOT_READY Not a valid input at all.\r
@retval EFI_SUCCESS Get a user name successfully.\r
@param[in] User Handle of the user whose information will be searched.\r
@param[in] InfoType The user information type to find.\r
@param[out] UserInfo Points to user information handle found.\r
- \r
+\r
@retval EFI_SUCCESS Find the user information successfully.\r
@retval Others Fail to find the user information.\r
\r
\r
@param[in] ValidLen The valid access policy length.\r
@param[in] ExpandLen The length that is needed to expand.\r
- \r
+\r
**/\r
VOID\r
ExpandMemory (\r
\r
/**\r
Delete User's credental from all the providers that exist in User's identity policy.\r
- \r
+\r
@param[in] IdentityPolicy Point to User's identity policy.\r
@param[in] IdentityPolicyLen The length of the identity policy.\r
@param[in] User Points to user profile.\r
DeleteCredentialFromProviders (\r
IN UINT8 *IdentityPolicy,\r
IN UINTN IdentityPolicyLen,\r
- IN EFI_USER_PROFILE_HANDLE User \r
+ IN EFI_USER_PROFILE_HANDLE User\r
);\r
- \r
+\r
#endif\r