/** @file\r
Password Credential Provider driver implementation.\r
\r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2014, 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
CHAR8 Password[CREDENTIAL_LEN];\r
CHAR16 *PromptStr;\r
\r
- if (Action == EFI_BROWSER_ACTION_CHANGING) {\r
+ if (Action == EFI_BROWSER_ACTION_CHANGED) {\r
if (QuestionId == KEY_GET_PASSWORD) {\r
//\r
// Get and check password.\r
EFI_USER_INFO *UserInfo;\r
CHAR8 Password[CREDENTIAL_LEN];\r
EFI_INPUT_KEY Key;\r
- EFI_USER_MANAGER_PROTOCOL *UserManager;\r
UINT8 *UserId;\r
CHAR16 *QuestionStr;\r
CHAR16 *PromptStr;\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- Status = gBS->LocateProtocol (\r
- &gEfiUserManagerProtocolGuid,\r
- NULL,\r
- (VOID **) &UserManager\r
- );\r
- if (EFI_ERROR (Status)) {\r
- return EFI_UNSUPPORTED;\r
- }\r
-\r
//\r
// Get User Identifier.\r
//\r
return Status;\r
}\r
\r
- //\r
- // Notify the user manager driver that credential information has changed.\r
- //\r
- UserManager->Notify (UserManager, mCallbackInfo->DriverHandle); \r
-\r
return EFI_SUCCESS;\r
}\r
\r
{\r
EFI_STATUS Status;\r
\r
+ //\r
+ // It is NOT robust enough to be included in production.\r
+ //\r
+ #error "This implementation is just a sample, please comment this line if you really want to use this driver."\r
+\r
//\r
// Init credential table.\r
//\r