X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FUserIdentification%2FUsbCredentialProviderDxe%2FUsbCredentialProvider.c;h=046a50052d78df90aca61b48bd14b96141bbd6dc;hp=979cdfd2cb22af85af938824e5c03118f79991a5;hb=68d151bbc9c2d48639e6de4a15d912158b10e9f7;hpb=6f0b864812b3313b79e7beade487f0ca8ca5f28d diff --git a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c index 979cdfd2cb..046a50052d 100644 --- a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c +++ b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c @@ -1,7 +1,7 @@ /** @file Usb Credential Provider driver implemenetation. -Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2014, 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 @@ -674,7 +674,6 @@ CredentialEnroll ( USB_INFO UsbInfo; EFI_USER_INFO *UserInfo; EFI_INPUT_KEY Key; - EFI_USER_MANAGER_PROTOCOL *UserManager; UINT8 *UserId; CHAR16 *QuestionStr; CHAR16 *PromptStr; @@ -683,15 +682,6 @@ CredentialEnroll ( return EFI_INVALID_PARAMETER; } - Status = gBS->LocateProtocol ( - &gEfiUserManagerProtocolGuid, - NULL, - (VOID **) &UserManager - ); - if (EFI_ERROR (Status)) { - return EFI_UNSUPPORTED; - } - // // Get User Identifier // @@ -749,11 +739,6 @@ CredentialEnroll ( return Status; } - // - // Notify the user manager driver that credential information has changed. - // - UserManager->Notify (UserManager, mCallbackInfo->DriverHandle); - return EFI_SUCCESS; } @@ -909,7 +894,6 @@ CredentialUser ( UINT8 *UserToken; UINT8 ReadToken[HASHED_CREDENTIAL_LEN]; EFI_INPUT_KEY Key; - EFI_TPL OldTpl; CHAR16 *QuestionStr; CHAR16 *PromptStr; @@ -958,8 +942,6 @@ CredentialUser ( if (EFI_ERROR (Status)) { QuestionStr = GetStringById (STRING_TOKEN (STR_READ_USB_TOKEN_ERROR)); PromptStr = GetStringById (STRING_TOKEN (STR_INSERT_USB_TOKEN)); - OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL); - gBS->RestoreTPL (TPL_APPLICATION); CreatePopUp ( EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE, &Key, @@ -968,7 +950,6 @@ CredentialUser ( PromptStr, NULL ); - gBS->RaiseTPL (OldTpl); FreePool (QuestionStr); FreePool (PromptStr); return EFI_NOT_FOUND; @@ -1395,6 +1376,11 @@ UsbProviderInit ( { EFI_STATUS Status; + // + // It is NOT robust enough to be included in production. + // + #error "This implementation is just a sample, please comment this line if you really want to use this driver." + // // Init credential table. //