Functions | |
CHAR16 * | GetStringById (IN EFI_STRING_ID Id) |
EFI_STATUS | InitProviderInfo (VOID) |
EFI_STATUS EFIAPI | UserProfileManagerCallback (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN EFI_BROWSER_ACTION Action, IN EFI_QUESTION_ID QuestionId, IN UINT8 Type, IN EFI_IFR_TYPE_VALUE *Value, OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest) |
EFI_STATUS EFIAPI | FakeExtractConfig (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Request, OUT EFI_STRING *Progress, OUT EFI_STRING *Results) |
EFI_STATUS EFIAPI | FakeRouteConfig (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Configuration, OUT EFI_STRING *Progress) |
EFI_STATUS EFIAPI | UserProfileManagerInit (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
EFI_USER_MANAGER_PROTOCOL * | mUserManager = NULL |
CREDENTIAL_PROVIDER_INFO * | mProviderInfo = NULL |
UINT8 | mProviderChoice |
UINT8 | mConncetLogical |
USER_INFO_ACCESS | mAccessInfo |
USER_INFO | mUserInfo |
USER_PROFILE_MANAGER_CALLBACK_INFO * | mCallbackInfo |
HII_VENDOR_DEVICE_PATH | mHiiVendorDevicePath |
Copyright (c) 2009 - 2011, 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.
EFI_STATUS EFIAPI FakeExtractConfig | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, | |
IN CONST EFI_STRING | Request, | |||
OUT EFI_STRING * | Progress, | |||
OUT EFI_STRING * | Results | |||
) |
This function allows a caller to extract the current configuration for one or more named elements from the target driver.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. | |
Request | A null-terminated Unicode string in <ConfigRequest> format. | |
Progress | On return, points to a character in the Request string. Points to the string's null terminator if request was successful. Points to the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) if the request was not successful. | |
Results | A null-terminated Unicode string in <ConfigAltResp> format which has all values filled in for the names in the Request string. String to be allocated by the called function. |
EFI_SUCCESS | The Results is filled with the requested values. | |
EFI_OUT_OF_RESOURCES | Not enough memory to store the results. | |
EFI_INVALID_PARAMETER | Request is illegal syntax, or unknown name. | |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
EFI_STATUS EFIAPI FakeRouteConfig | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, | |
IN CONST EFI_STRING | Configuration, | |||
OUT EFI_STRING * | Progress | |||
) |
This function processes the results of changes in configuration.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. | |
Configuration | A null-terminated Unicode string in <ConfigResp> format. | |
Progress | A pointer to a string filled in with the offset of the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) or the terminating NULL if all was successful. |
EFI_SUCCESS | The Results is processed successfully. | |
EFI_INVALID_PARAMETER | Configuration is NULL. | |
EFI_NOT_FOUND | Routing data doesn't match any storage in this driver. |
CHAR16* GetStringById | ( | IN EFI_STRING_ID | Id | ) |
Get string by string id from HII Interface.
[in] | Id | String ID to get the string from. |
CHAR16 | * String from ID. | |
NULL | If error occurs. |
References USER_PROFILE_MANAGER_CALLBACK_INFO::HiiHandle, and PWD_PROVIDER_CALLBACK_INFO::HiiHandle.
EFI_STATUS InitProviderInfo | ( | VOID | ) |
This function gets all the credential providers in the system and saved them to mProviderInfo.
EFI_SUCESS | Init credential provider database successfully. | |
Others | Fail to init credential provider database. |
References CREDENTIAL_PROVIDER_INFO::Count, EFI_STATUS(), CREDENTIAL_PROVIDER_INFO::Provider, and UINTN().
EFI_STATUS EFIAPI UserProfileManagerCallback | ( | IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL * | This, | |
IN EFI_BROWSER_ACTION | Action, | |||
IN EFI_QUESTION_ID | QuestionId, | |||
IN UINT8 | Type, | |||
IN EFI_IFR_TYPE_VALUE * | Value, | |||
OUT EFI_BROWSER_ACTION_REQUEST * | ActionRequest | |||
) |
This function processes changes in user profile configuration.
This | Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL. | |
Action | Specifies the type of action taken by the browser. | |
QuestionId | A unique value which is sent to the original exporting driver so that it can identify the type of data to expect. | |
Type | The type of value for the question. | |
Value | A pointer to the data being sent to the original exporting driver. | |
ActionRequest | On return, points to the action requested by the callback function. |
EFI_SUCCESS | The callback successfully handled the action. | |
Others | Fail to handle the action. |
References USER_INFO_ACCESS::AccessBootOrder, USER_INFO_ACCESS::AccessRight, USER_INFO_ACCESS::AccessSetup, AddIdentityPolicyItem(), AddToForbidLoad(), CallAddUser(), DeleteFromForbidLoad(), DeleteUser(), DisplayConnectForbid(), DisplayConnectPermit(), DisplayLoadForbid(), DisplayLoadPermit(), EFI_STATUS(), FORMID_DEL_USER, FORMID_MODIFY_USER, FORMID_USER_MANAGE, GetAccessRight(), GetStringById(), gUserProfileManagerGuid, USER_PROFILE_MANAGER_CALLBACK_INFO::HiiHandle, InitProviderInfo(), KEY_ADD_IP_OP, KEY_ADD_USER, KEY_AP_RETURN_UIF, KEY_CONNECT_FORBID_MODIFY, KEY_CONNECT_PERMIT_MODIFY, KEY_DEL_USER, KEY_DISPLAY_DP_MASK, KEY_ENTER_NEXT_FORM, KEY_FIRST_FORM_MASK, KEY_FORBID_MODIFY, KEY_IP_RETURN_UIF, KEY_LOAD_FORBID_MODIFY, KEY_LOAD_PERMIT_MODIFY, KEY_MODIFY_AP, KEY_MODIFY_AP_DP, KEY_MODIFY_AP_MASK, KEY_MODIFY_BOOT, KEY_MODIFY_CONN, KEY_MODIFY_CONNECT, KEY_MODIFY_DP_MASK, KEY_MODIFY_INFO_MASK, KEY_MODIFY_IP, KEY_MODIFY_IP_MASK, KEY_MODIFY_LOAD, KEY_MODIFY_NAME, KEY_MODIFY_PROV, KEY_MODIFY_RIGHT, KEY_MODIFY_SETUP, KEY_MODIFY_USER, KEY_PERMIT_MODIFY, KEY_SECOND_FORM_MASK, KEY_SELECT_USER, LABEL_END, LABEL_USER_MANAGE_FUNC, mConncetLogical, ModidyAccessPolicy(), ModifyIdentityPolicy(), ModifyUserInfo(), ModifyUserName(), mProviderChoice, mUserManager, QUESTIONID_USER_MANAGE, SaveAccessPolicy(), SaveIdentityPolicy(), SelectUserToDelete(), and SelectUserToModify().
Referenced by UserProfileManagerInit().
EFI_STATUS EFIAPI UserProfileManagerInit | ( | IN EFI_HANDLE | ImageHandle, | |
IN EFI_SYSTEM_TABLE * | SystemTable | |||
) |
Main entry for this driver.
ImageHandle | Image handle this driver. | |
SystemTable | Pointer to SystemTable. |
EFI_SUCESS | This function always complete successfully. |
References USER_PROFILE_MANAGER_CALLBACK_INFO::ConfigAccess, USER_PROFILE_MANAGER_CALLBACK_INFO::DriverHandle, EFI_STATUS(), FakeExtractConfig(), FakeRouteConfig(), gUserProfileManagerGuid, USER_PROFILE_MANAGER_CALLBACK_INFO::HiiHandle, mUserManager, USER_PROFILE_MANAGER_CALLBACK_INFO::Signature, USER_PROFILE_MANAGER_SIGNATURE, UserProfileManagerCallback(), UserProfileManagerStrings, and UserProfileManagerVfrBin.
UINT8 mConncetLogical |
Referenced by AddProviderToPolicy(), GetAllUserInfo(), ModifyIdentityPolicy(), and UserProfileManagerCallback().
Initial value:
{ { { HARDWARE_DEVICE_PATH, HW_VENDOR_DP, { (UINT8) (sizeof (VENDOR_DEVICE_PATH)), (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) } }, USER_PROFILE_MANAGER_GUID }, { END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, { (UINT8) (END_DEVICE_PATH_LENGTH), (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8) } } }
UINT8 mProviderChoice |
Referenced by AddIdentityPolicyItem(), GetAllUserInfo(), ModifyIdentityPolicy(), and UserProfileManagerCallback().
Referenced by AddIdentityPolicyItem(), AddProviderToPolicy(), DeleteProviderFromPolicy(), ExpandMemory(), GetAllUserInfo(), ModifyIdentityPolicy(), ModifyUserInfo(), ModifyUserName(), ProviderAlreadyInPolicy(), ResolveAccessPolicy(), SaveAccessPolicy(), SaveIdentityPolicy(), and UpdateCredentialProvider().
EFI_USER_MANAGER_PROTOCOL* mUserManager = NULL |