SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileModify.c File Reference


Functions

VOID SelectUserToModify (VOID)
VOID GetAllUserInfo (VOID)
VOID ResolveDate (IN EFI_TIME *Date, IN EFI_STRING_ID DateId)
VOID ResolveCount (IN UINT32 CountVal, IN EFI_STRING_ID CountId)
VOID AddStr (IN OUT CHAR16 **Source1, IN CONST CHAR16 *Source2)
VOID ResolveIdentityPolicy (IN UINT8 *Ip, IN UINTN IpLen, IN EFI_STRING_ID IpStringId)
VOID ModifyUserInfo (IN UINT8 UserIndex)
VOID ResolveAccessPolicy (VOID)
EFI_STATUS FindInfoByType (IN EFI_USER_PROFILE_HANDLE User, IN UINT8 InfoType, OUT EFI_USER_INFO_HANDLE *UserInfo)
VOID ModidyAccessPolicy (VOID)
VOID ExpandMemory (IN UINTN ValidLen, IN UINTN ExpandLen)
VOID ModifyUserName (VOID)
VOID ModifyIdentityPolicy (VOID)
EFI_STATUS GetAccessRight (OUT UINT32 *AccessRight)

Variables

EFI_USER_PROFILE_HANDLE mModifyUser = NULL

Detailed Description

The functions to modify a user profile.

Copyright (c) 2009 - 2015, Intel Corporation. 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.


Function Documentation

VOID AddStr ( IN OUT CHAR16 **  Source1,
IN CONST CHAR16 *  Source2 
)

Concatenates one Null-terminated Unicode string to another Null-terminated Unicode string.

Parameters:
[in,out] Source1 On entry, point to a Null-terminated Unicode string. On exit, point to a new concatenated Unicode string
[in] Source2 Pointer to a Null-terminated Unicode string.

References UINTN().

Referenced by ResolveIdentityPolicy().

VOID ExpandMemory ( IN UINTN  ValidLen,
IN UINTN  ExpandLen 
)

Expand access policy memory size.

Parameters:
[in] ValidLen The valid access policy length.
[in] ExpandLen The length that is needed to expand.

References USER_INFO::AccessPolicy, USER_INFO::AccessPolicyLen, mUserInfo, and UINTN().

Referenced by SaveAccessPolicy().

EFI_STATUS FindInfoByType ( IN EFI_USER_PROFILE_HANDLE  User,
IN UINT8  InfoType,
OUT EFI_USER_INFO_HANDLE *  UserInfo 
)

Find the specified info in User profile by the InfoType.

Parameters:
[in] User Handle of the user whose information will be searched.
[in] InfoType The user information type to find.
[out] UserInfo Points to user information handle found.
Return values:
EFI_SUCCESS Find the user information successfully.
Others Fail to find the user information.

References EFI_STATUS(), mUserManager, TRUE, and UINTN().

Referenced by DeleteUser(), ModifyUserName(), SaveAccessPolicy(), and SaveIdentityPolicy().

EFI_STATUS GetAccessRight ( OUT UINT32 *  AccessRight  ) 

Get current user's access right.

Parameters:
[out] AccessRight Points to the buffer used for user's access right.
Return values:
EFI_SUCCESS Get current user access right successfully.
others Fail to get current user access right.

References EFI_STATUS(), mUserManager, TRUE, and UINTN().

Referenced by ModifyUserInfo(), SelectUserToModify(), and UserProfileManagerCallback().

VOID GetAllUserInfo ( VOID   ) 

VOID ModidyAccessPolicy ( VOID   ) 

VOID ModifyIdentityPolicy ( VOID   ) 

VOID ModifyUserInfo ( IN UINT8  UserIndex  ) 

VOID ModifyUserName ( VOID   ) 

Get the username from user input, and update username string in the Hii database with it.

References EFI_STATUS(), FindInfoByType(), GetUserNameInput(), PWD_PROVIDER_CALLBACK_INFO::HiiHandle, mCallbackInfo, mModifyUser, mUserInfo, mUserManager, UINTN(), USER_NAME_LENGTH, and USER_INFO::UserName.

Referenced by UserProfileManagerCallback().

VOID ResolveAccessPolicy ( VOID   ) 

VOID ResolveCount ( IN UINT32  CountVal,
IN EFI_STRING_ID  CountId 
)

Convert the CountVal to a string, and update the Hii database CountId string with it.

Parameters:
[in] CountVal The hex value to convert.
[in] CountId String ID in the HII database to be replaced.

References PWD_PROVIDER_CALLBACK_INFO::HiiHandle, and mCallbackInfo.

Referenced by ModifyUserInfo().

VOID ResolveDate ( IN EFI_TIME *  Date,
IN EFI_STRING_ID  DateId 
)

Convert the Date to a string, and update the Hii database DateID string with it.

Parameters:
[in] Date Points to the date to be converted.
[in] DateId String ID in the HII database to be replaced.

References PWD_PROVIDER_CALLBACK_INFO::HiiHandle, mCallbackInfo, and UINTN().

Referenced by ModifyUserInfo().

VOID ResolveIdentityPolicy ( IN UINT8 *  Ip,
IN UINTN  IpLen,
IN EFI_STRING_ID  IpStringId 
)

Convert the identity policy to a unicode string and update the Hii database IpStringId string with it.

Parameters:
[in] Ip Points to identity policy.
[in] IpLen The identity policy length.
[in] IpStringId String ID in the HII database to be replaced.

References AddStr(), CREDENTIAL_PROVIDER_INFO::Count, PWD_PROVIDER_CALLBACK_INFO::HiiHandle, mCallbackInfo, mProviderInfo, CREDENTIAL_PROVIDER_INFO::Provider, and UINTN().

Referenced by AddIdentityPolicyItem(), ModifyIdentityPolicy(), ModifyUserInfo(), and SaveIdentityPolicy().

VOID SelectUserToModify ( VOID   ) 


Variable Documentation

EFI_USER_PROFILE_HANDLE mModifyUser = NULL


Generated on Thu Sep 24 23:44:25 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1